Advertisement
Guest User

Untitled

a guest
Sep 6th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.17 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2. import '../utils/utils.dart';
  3.  
  4. class HomePage extends StatefulWidget {
  5.  
  6.   @override
  7.   _HomePageState createState() => _HomePageState();
  8. }
  9.  
  10. class _HomePageState extends State<HomePage> {
  11.  
  12.     @override
  13.     Widget build(BuildContext context)
  14.     {
  15.       return new Scaffold
  16.       (
  17.        
  18.         appBar: new AppBar
  19.         (
  20.           title: new Text('Home'),
  21.           backgroundColor: Constants.clr_lightblue,
  22.         ),
  23.        
  24.        
  25.         endDrawer: Drawer(
  26.         child: Container(
  27.           alignment: Alignment.bottomCenter,
  28.           child: ListView(
  29.             reverse: false,
  30.             padding: EdgeInsets.all(10.0),
  31.             children:  <Widget>[
  32.               new Text("1"),
  33.               new Text("2"),
  34.               new Text("3"),
  35.             ],
  36.           ),
  37.           color: Constants.clr_darkblue,
  38.         ),
  39.       ),
  40.      
  41.       body: new Center
  42.       (
  43.         child: Column(
  44.           children: <Widget>
  45.           [
  46.             Image.asset('assets/images/psg-logo.png'),
  47.           ],
  48.           )
  49.         ),
  50.         backgroundColor: Constants.clr_lightblue,
  51.       );
  52.     }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement