Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 3.01 KB | None | 0 0
  1. import 'package:ekallu_app/controller/UserScreenController.dart';
  2. import 'package:ekallu_app/main.dart';
  3. import 'package:ekallu_app/widgets/screens/BaseScreen.dart';
  4. import 'package:flutter/material.dart';
  5. import 'package:flutter/services.dart';
  6. import 'package:flutter/widgets.dart';
  7.  
  8. class UserScreenWidget extends BaseScreen {
  9.   UserScreenController controller;
  10.  
  11.   UserScreenWidget() {
  12.     controller = new UserScreenController(this);
  13.   }
  14.  
  15.   @override
  16.   Widget build(BuildContext context) {
  17.     SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values);
  18.     return new MaterialApp(
  19.         title: 'Ekallu',
  20.         home: buildScaffold(),
  21.         routes: App.routes,
  22.         debugShowCheckedModeBanner: false);
  23.   }
  24.  
  25.   Scaffold buildScaffold() {
  26.     return new Scaffold(
  27.         resizeToAvoidBottomPadding: false,
  28.         key: scaffoldKey,
  29.         backgroundColor: Color.fromARGB(1, 18, 12, 12),
  30.         drawer: new SizedBox(
  31.           width: 250,
  32.           child: new Drawer(
  33.               child: new ListView(
  34.             children: <Widget>[
  35.               new DrawerHeader(
  36.                 child: new Text('Header'),
  37.               ),
  38.               new ListTile(
  39.                 title: new Text('First Menu Item'),
  40.                 onTap: () {},
  41.               ),
  42.               new ListTile(
  43.                 title: new Text('Second Menu Item'),
  44.                 onTap: () {},
  45.               ),
  46.               new Divider(),
  47.               new ListTile(
  48.                 title: new Text('About'),
  49.                 onTap: () {},
  50.               ),
  51.             ],
  52.           )),
  53.         ),
  54.         body: new Column(
  55.           crossAxisAlignment: CrossAxisAlignment.stretch,
  56.           children: <Widget>[
  57.             new Stack(
  58.               children: <Widget>[
  59.                 new Container(
  60.                     alignment: Alignment.topLeft,
  61.                     padding: EdgeInsets.only(top: 40, left: 10),
  62.                     child: new IconButton(
  63.                         icon: new Icon(Icons.menu, size: 28.0),
  64.                         color: Colors.white,
  65.                         onPressed: controller.openDrawer)),
  66.                 new Container(
  67.                   padding: EdgeInsets.only(top: 55),
  68.                   alignment: Alignment.center,
  69.                   child: new Text("EKALLU",
  70.                       style: TextStyle(fontSize: 16, color: Colors.white)),
  71.                 )
  72.               ],
  73.             ),
  74.             Container(
  75.               padding: EdgeInsets.only(top: 30),
  76.               child: new SizedBox(
  77.                 width:
  78.                     MediaQuery.of(scaffoldKey.currentContext).size.width * 0.9,
  79.                 height:
  80.                     MediaQuery.of(scaffoldKey.currentContext).size.height * 0.4,
  81.                 child: new Container(
  82.                     color: Color.fromRGBO(239, 230, 221, 1),
  83.                     child: new Stack(
  84.                       children: <Widget>[],
  85.                     )),
  86.               ),
  87.             ),
  88.           ],
  89.        ));
  90.   }
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement