Advertisement
ZawXtut

Tes MyTeam

Dec 18th, 2020
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.67 KB | None | 0 0
  1. ######MainMenu
  2.  final  page;
  3.   const MainMenu({
  4.     Key key,
  5.     @required this.name,
  6.     @required this.icon,
  7.     @required this.page
  8.    
  9.   }) : super(key: key);
  10.  
  11.   @override
  12.   Widget build(BuildContext context) {
  13.  
  14.     return Card(
  15.       child: InkWell(
  16.         onTap: (){
  17.           Navigator.push(context, MaterialPageRoute(builder: (BuildContext context)=>page));
  18.         },
  19. ####class AboutPage
  20. class AboutPage extends StatelessWidget {
  21.   const AboutPage({Key key}) : super(key: key);
  22.  
  23.   @override
  24.   Widget build(BuildContext context) {
  25.     return Scaffold(
  26.       appBar: AppBar(
  27.         title: Text("About Us"),
  28.       ),
  29.       body: Body(),
  30.     );
  31.   }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement