SHARE
TWEET

Untitled

a guest Mar 23rd, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.   Scaffold scaffold;
  10.   UserScreenController controller;
  11.  
  12.   UserScreenWidget() {
  13.     controller = new UserScreenController(this);
  14.   }
  15.  
  16.   @override
  17.   Widget build(BuildContext context) {
  18.     SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values);
  19.     scaffold = new Scaffold(
  20.         resizeToAvoidBottomPadding: false,
  21.         key: scaffoldKey,
  22.         backgroundColor: Color.fromARGB(1, 18, 12, 12),
  23.         drawer: new SizedBox(
  24.           width: 250,
  25.           child: new Drawer(
  26.               child: new ListView(
  27.             children: <Widget>[
  28.               new DrawerHeader(
  29.                 child: new Text('Header'),
  30.               ),
  31.               new ListTile(
  32.                 title: new Text('First Menu Item'),
  33.                 onTap: () {},
  34.               ),
  35.               new ListTile(
  36.                 title: new Text('Second Menu Item'),
  37.                 onTap: () {},
  38.               ),
  39.               new Divider(),
  40.               new ListTile(
  41.                 title: new Text('About'),
  42.                 onTap: () {},
  43.               ),
  44.             ],
  45.           )),
  46.         ),
  47.         body: new Column(
  48.           crossAxisAlignment: CrossAxisAlignment.stretch,
  49.           children: <Widget>[
  50.             new Stack(
  51.               children: <Widget>[
  52.                 new Container(
  53.                     alignment: Alignment.topLeft,
  54.                     padding: EdgeInsets.only(top: 40, left: 10),
  55.                     child: new IconButton(
  56.                         icon: new Icon(Icons.menu, size: 28.0),
  57.                         color: Colors.white,
  58.                         onPressed: controller.openDrawer)),
  59.                 new Container(
  60.                   padding: EdgeInsets.only(top: 55),
  61.                   alignment: Alignment.center,
  62.                   child: new Text("EKALLU",
  63.                       style: TextStyle(
  64.                           fontFamily: 'Roboto',
  65.                           fontSize: 16,
  66.                           color: Colors.white)),
  67.                 )
  68.               ],
  69.             ),
  70.             Container(
  71.               padding: EdgeInsets.only(top: 30),
  72.               child: new SizedBox(
  73.                 width: MediaQuery.of(scaffoldKey.currentContext).size.width*0.9,
  74.                 height: MediaQuery.of(scaffoldKey.currentContext).size.height*0.4,
  75.                 child: new Container(
  76.                     color: Color.fromRGBO(239, 230, 221, 1),
  77.                     child: new Stack(
  78.                       children: <Widget>[],
  79.                     )),
  80.               ),
  81.             ),
  82.           ],
  83.         ));
  84.     return new MaterialApp(
  85.         title: 'Ekallu',
  86.         home: scaffold,
  87.         routes: App.routes,
  88.         debugShowCheckedModeBanner: false);
  89.   }
  90. }
  91. import 'package:ekallu_app/main.dart';
  92. import 'package:flutter/material.dart';
  93. import 'package:flutter/widgets.dart';
  94.  
  95. abstract class BaseScreen extends State<App> {
  96.   final GlobalKey<ScaffoldState> scaffoldKey = new GlobalKey<ScaffoldState>();
  97. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top