Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created April 9, 2020 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/4e42b4a656c3db9b822be1385d731605 to your computer and use it in GitHub Desktop.
Save parzibyte/4e42b4a656c3db9b822be1385d731605 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
import 'navigator.dart';
class Escritorio extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Escritorio"),
),
body: GridView.count(
crossAxisCount: 2,
children: <Widget>[
Card(
elevation: 10,
child: InkWell(
splashColor: Colors.blue.withAlpha(30),
onTap: () {
navegarAProductos();
},
child: ListTile(
title: Text(
'Productos',
textAlign: TextAlign.center,
),
subtitle: Image(
image: AssetImage("assets/order.png"),
),
),
),
),
Card(
elevation: 10,
child: InkWell(
splashColor: Colors.blue.withAlpha(30),
onTap: () {
navegarAVentas();
},
child: ListTile(
title: Text(
'Ventas',
textAlign: TextAlign.center,
),
subtitle: Image(
image: AssetImage("assets/coupon.png"),
),
),
),
),
Card(
elevation: 10,
child: InkWell(
splashColor: Colors.blue.withAlpha(30),
onTap: () {
navegarAClientes();
},
child: ListTile(
title: Text(
'Clientes',
textAlign: TextAlign.center,
),
subtitle: Image(
image: AssetImage("assets/clientes.png"),
),
),
),
),
Card(
elevation: 10,
child: InkWell(
splashColor: Colors.blue.withAlpha(30),
onTap: () {
navegarAAcercaDe();
},
child: ListTile(
title: Text(
'Acerca de',
textAlign: TextAlign.center,
),
subtitle: Image(
image: AssetImage("assets/about.png"),
),
),
),
),
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment