Created
June 7, 2021 18:51
-
-
Save luizmarcus/780b355e54b283e88bcd20d655f5f1c1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class FirstPage extends StatefulWidget { | |
final String title; | |
const FirstPage({Key? key, required this.title}) : super(key: key); | |
@override | |
_FirstPageState createState() => _FirstPageState(); | |
} | |
class _FirstPageState extends State<FirstPage> { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
title: Text(widget.title), | |
backgroundColor: Colors.purple, | |
elevation: 0, | |
), | |
body: Container( | |
color: Colors.purple, | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.start, | |
crossAxisAlignment: CrossAxisAlignment.stretch, | |
children: [ | |
_getItem(Icons.tag, "Item 1", "item1"), | |
_getItem(Icons.translate, "Item 2", "item2"), | |
_getItem(Icons.input, "Item 3", "item3"), | |
_getItem(Icons.message, "Item 4", "item4"), | |
]), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment