Advertisement
Guest User

Untitled

a guest
Jun 28th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.90 KB | None | 0 0
  1. @override
  2.   Widget build(BuildContext context) {
  3.     return new Scaffold(
  4.       key: scaffoldKey,
  5.       appBar: AppBar(
  6.         actions: <Widget>[
  7.           new IconButton(
  8.             icon: new Icon(Icons.info),
  9.             color: Theme.of(context).primaryColor,
  10.             onPressed: () {
  11.               showAboutDialog(context: context, applicationIcon: Icon(Icons.insert_chart), applicationLegalese: 'Muajaja');
  12.             },
  13.           ),
  14.           new IconButton(
  15.             icon: new Icon(Icons.add_box),
  16.             color: Colors.blue,
  17.             onPressed: () {},
  18.           ),
  19.         ],
  20.         title: Text(
  21.           'My checks',
  22.           style: TextStyle(
  23.             color: Colors.black,
  24.             fontSize: 32.0,
  25.             fontWeight: FontWeight.bold,
  26.           ),
  27.         ),
  28.         backgroundColor: Colors.transparent,
  29.         elevation: 0.0,
  30.       ),
  31.       body: TabBarView(
  32.         children: <Widget>[
  33.           ListPage(scaffoldKey: scaffoldKey),
  34.           BlankPage(),
  35.           BlankPage(),
  36.           BlankPage(),
  37.           BlankPage(img: AssetImage('img/meme.jpg')),
  38.         ],
  39.         controller: tabController,
  40.       ),
  41.       bottomNavigationBar: SafeArea(
  42.               child: Material(
  43.           color: Colors.white,
  44.           child: TabBar(
  45.             controller: tabController,
  46.             labelColor: Colors.blue,
  47.             unselectedLabelColor: Colors.black26,
  48.             tabs: <Widget>[
  49.               Tab(
  50.                 icon: Icon(Icons.dashboard),
  51.               ),
  52.               Tab(
  53.                 icon: Icon(Icons.adjust),
  54.               ),
  55.               Tab(
  56.                 icon: Icon(Icons.cloud),
  57.               ),
  58.               Tab(
  59.                 icon: Icon(Icons.person),
  60.               ),
  61.               Tab(
  62.                 icon: Icon(Icons.settings),
  63.               ),
  64.             ],
  65.           ),
  66.         ),
  67.       ),
  68.     );
  69.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement