Skip to content

Instantly share code, notes, and snippets.

@luizmarcus
Created June 7, 2021 18:51
Show Gist options
  • Save luizmarcus/780b355e54b283e88bcd20d655f5f1c1 to your computer and use it in GitHub Desktop.
Save luizmarcus/780b355e54b283e88bcd20d655f5f1c1 to your computer and use it in GitHub Desktop.
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