Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ######MainMenu
- final page;
- const MainMenu({
- Key key,
- @required this.name,
- @required this.icon,
- @required this.page
- }) : super(key: key);
- @override
- Widget build(BuildContext context) {
- return Card(
- child: InkWell(
- onTap: (){
- Navigator.push(context, MaterialPageRoute(builder: (BuildContext context)=>page));
- },
- ####class AboutPage
- class AboutPage extends StatelessWidget {
- const AboutPage({Key key}) : super(key: key);
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: Text("About Us"),
- ),
- body: Body(),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement