Created
April 9, 2020 19:54
-
-
Save parzibyte/4e42b4a656c3db9b822be1385d731605 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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