drawer added, trying to fix text alignment
This commit is contained in:
parent
9e42671488
commit
157d485e3c
4 changed files with 82 additions and 1 deletions
71
lib/common/widgets/awesome_drawer.dart
Normal file
71
lib/common/widgets/awesome_drawer.dart
Normal file
|
@ -0,0 +1,71 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'dart:io' show Platform;
|
||||
|
||||
class AwesomeDrawer {
|
||||
|
||||
Widget getDrawer(BuildContext context) {
|
||||
return new Container(
|
||||
width: 250,
|
||||
color: Colors.white,
|
||||
// padding: EdgeInsets.fromLTRB(32, 25, 32, 0),
|
||||
child: ListView(
|
||||
children: <Widget> [
|
||||
|
||||
Container(
|
||||
padding: const EdgeInsets.fromLTRB(0, 15, 0, 0),
|
||||
child :
|
||||
FlatButton(onPressed: () => Navigator.of(context).pushReplacementNamed("/StatsPage"),
|
||||
child:
|
||||
Text("yeehaw",
|
||||
textAlign: Platform.isIOS ? TextAlign.right : TextAlign.left,
|
||||
style: new TextStyle(
|
||||
fontSize: 32.0,
|
||||
color: Colors.black,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Container(
|
||||
padding: const EdgeInsets.fromLTRB(0, 15, 0, 0),
|
||||
child :
|
||||
FlatButton(onPressed: () => Navigator.of(context).pushReplacementNamed("/MorePage"), child:
|
||||
Text("clickity clack",
|
||||
textAlign: Platform.isIOS ? TextAlign.right : TextAlign.left,
|
||||
style: new TextStyle(
|
||||
fontSize: 32.0,
|
||||
color: Colors.black,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
Container(
|
||||
padding: const EdgeInsets.fromLTRB(0, 15, 0, 0),
|
||||
child :
|
||||
FlatButton(onPressed: () => debugPrint("pressed"), child:
|
||||
Text("scoot scoot",
|
||||
style: new TextStyle(
|
||||
fontSize: 32.0,
|
||||
color: Colors.black,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Container(
|
||||
padding: const EdgeInsets.fromLTRB(0, 15, 0, 0),
|
||||
child :
|
||||
FlatButton(onPressed: () => debugPrint("pressed"), child:
|
||||
Text("reeeeeeeeee",
|
||||
style: new TextStyle(
|
||||
fontSize: 32.0,
|
||||
color: Colors.black,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
]
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Reference in a new issue