names appropriated, pages updated
This commit is contained in:
parent
157d485e3c
commit
248d5f6983
3 changed files with 13 additions and 45 deletions
|
@ -14,9 +14,9 @@ class AwesomeDrawer {
|
||||||
Container(
|
Container(
|
||||||
padding: const EdgeInsets.fromLTRB(0, 15, 0, 0),
|
padding: const EdgeInsets.fromLTRB(0, 15, 0, 0),
|
||||||
child :
|
child :
|
||||||
FlatButton(onPressed: () => Navigator.of(context).pushReplacementNamed("/StatsPage"),
|
FlatButton(onPressed: () => Navigator.of(context).pushReplacementNamed("/ReceiptPage"),
|
||||||
child:
|
child:
|
||||||
Text("yeehaw",
|
Text("Submit Receipt",
|
||||||
textAlign: Platform.isIOS ? TextAlign.right : TextAlign.left,
|
textAlign: Platform.isIOS ? TextAlign.right : TextAlign.left,
|
||||||
style: new TextStyle(
|
style: new TextStyle(
|
||||||
fontSize: 32.0,
|
fontSize: 32.0,
|
||||||
|
@ -29,8 +29,8 @@ class AwesomeDrawer {
|
||||||
Container(
|
Container(
|
||||||
padding: const EdgeInsets.fromLTRB(0, 15, 0, 0),
|
padding: const EdgeInsets.fromLTRB(0, 15, 0, 0),
|
||||||
child :
|
child :
|
||||||
FlatButton(onPressed: () => Navigator.of(context).pushReplacementNamed("/MorePage"), child:
|
FlatButton(onPressed: () => Navigator.of(context).pushReplacementNamed("/StatsPage"), child:
|
||||||
Text("clickity clack",
|
Text("Statistics",
|
||||||
textAlign: Platform.isIOS ? TextAlign.right : TextAlign.left,
|
textAlign: Platform.isIOS ? TextAlign.right : TextAlign.left,
|
||||||
style: new TextStyle(
|
style: new TextStyle(
|
||||||
fontSize: 32.0,
|
fontSize: 32.0,
|
||||||
|
@ -42,8 +42,8 @@ class AwesomeDrawer {
|
||||||
Container(
|
Container(
|
||||||
padding: const EdgeInsets.fromLTRB(0, 15, 0, 0),
|
padding: const EdgeInsets.fromLTRB(0, 15, 0, 0),
|
||||||
child :
|
child :
|
||||||
FlatButton(onPressed: () => debugPrint("pressed"), child:
|
FlatButton(onPressed: () => Navigator.of(context).pushReplacementNamed("/MorePage"), child:
|
||||||
Text("scoot scoot",
|
Text("More",
|
||||||
style: new TextStyle(
|
style: new TextStyle(
|
||||||
fontSize: 32.0,
|
fontSize: 32.0,
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:local_spend/common/platform/platform_scaffold.dart';
|
import 'package:local_spend/common/platform/platform_scaffold.dart';
|
||||||
import 'package:shared_preferences/shared_preferences.dart';
|
import 'package:shared_preferences/shared_preferences.dart';
|
||||||
|
@ -6,6 +5,7 @@ import 'package:local_spend/common/functions/logout.dart';
|
||||||
import 'package:url_launcher/url_launcher.dart';
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
import 'package:local_spend/common/functions/customAbout.dart' as custom;
|
import 'package:local_spend/common/functions/customAbout.dart' as custom;
|
||||||
import 'package:local_spend/common/functions/showDialogTwoButtons.dart';
|
import 'package:local_spend/common/functions/showDialogTwoButtons.dart';
|
||||||
|
import 'package:local_spend/common/widgets/awesome_drawer.dart';
|
||||||
|
|
||||||
const URL = "https://flutter.io/";
|
const URL = "https://flutter.io/";
|
||||||
const demonstration = false;
|
const demonstration = false;
|
||||||
|
@ -44,18 +44,13 @@ class MorePageState extends State<MorePage> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return WillPopScope(
|
var drawer = new AwesomeDrawer();
|
||||||
onWillPop: () {
|
|
||||||
if (Navigator.canPop(context)) {
|
return new PlatformScaffold(
|
||||||
Navigator.of(context).pushNamedAndRemoveUntil(
|
drawer: drawer.getDrawer(context),
|
||||||
'/LoginPage', (Route<dynamic> route) => false);
|
|
||||||
} else {
|
|
||||||
Navigator.of(context).pushReplacementNamed('/LoginPage');
|
|
||||||
}
|
|
||||||
},
|
|
||||||
child: PlatformScaffold(
|
|
||||||
|
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
|
|
||||||
backgroundColor: Colors.blue[400],
|
backgroundColor: Colors.blue[400],
|
||||||
title: Text(
|
title: Text(
|
||||||
"More",
|
"More",
|
||||||
|
@ -173,7 +168,6 @@ class MorePageState extends State<MorePage> {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,7 +58,6 @@ class StatsPageState extends State<StatsPage> {
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// leading: BackButton(),
|
|
||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
iconTheme: IconThemeData(color: Colors.black),
|
iconTheme: IconThemeData(color: Colors.black),
|
||||||
),
|
),
|
||||||
|
@ -68,25 +67,6 @@ class StatsPageState extends State<StatsPage> {
|
||||||
padding: EdgeInsets.fromLTRB(0, 0, 0, 0),
|
padding: EdgeInsets.fromLTRB(0, 0, 0, 0),
|
||||||
child: ListView(
|
child: ListView(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
// some graphs and charts here etc
|
|
||||||
// Container(
|
|
||||||
// padding: EdgeInsets.fromLTRB(0.0,17,0.0,0.0),
|
|
||||||
// child : Text(
|
|
||||||
// "Really Cool Chart",
|
|
||||||
// textAlign: TextAlign.center,
|
|
||||||
// style: TextStyle(
|
|
||||||
// fontSize: 22.0,
|
|
||||||
// color: Colors.black,
|
|
||||||
// fontWeight: FontWeight.bold,
|
|
||||||
// ),
|
|
||||||
// ),
|
|
||||||
// ),
|
|
||||||
//
|
|
||||||
// Container(
|
|
||||||
// height: 250,
|
|
||||||
//// width: 250,
|
|
||||||
// child: new DonutPieChart.withSampleData()
|
|
||||||
// ),
|
|
||||||
|
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.fromLTRB(0.0,17,0.0,0.0),
|
padding: EdgeInsets.fromLTRB(0.0,17,0.0,0.0),
|
||||||
|
@ -104,7 +84,6 @@ class StatsPageState extends State<StatsPage> {
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 10),
|
padding: EdgeInsets.symmetric(horizontal: 10),
|
||||||
height: 200,
|
height: 200,
|
||||||
// width: 250,
|
|
||||||
child: new GroupedBarChart.withSampleData()
|
child: new GroupedBarChart.withSampleData()
|
||||||
),
|
),
|
||||||
|
|
||||||
|
@ -124,7 +103,6 @@ class StatsPageState extends State<StatsPage> {
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 10),
|
padding: EdgeInsets.symmetric(horizontal: 10),
|
||||||
height: 200,
|
height: 200,
|
||||||
// width: 250,
|
|
||||||
child: new BucketingAxisScatterPlotChart.withSampleData()
|
child: new BucketingAxisScatterPlotChart.withSampleData()
|
||||||
),
|
),
|
||||||
|
|
||||||
|
@ -164,7 +142,6 @@ class StatsPageState extends State<StatsPage> {
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 10),
|
padding: EdgeInsets.symmetric(horizontal: 10),
|
||||||
height: 200,
|
height: 200,
|
||||||
// width: 250,
|
|
||||||
child: new DonutAutoLabelChart.withSampleData()
|
child: new DonutAutoLabelChart.withSampleData()
|
||||||
),
|
),
|
||||||
|
|
||||||
|
@ -184,7 +161,6 @@ class StatsPageState extends State<StatsPage> {
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 10),
|
padding: EdgeInsets.symmetric(horizontal: 10),
|
||||||
height: 200,
|
height: 200,
|
||||||
// width: 250,
|
|
||||||
child: new DonutPieChart.withSampleData()
|
child: new DonutPieChart.withSampleData()
|
||||||
),
|
),
|
||||||
|
|
||||||
|
@ -204,7 +180,6 @@ class StatsPageState extends State<StatsPage> {
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 10),
|
padding: EdgeInsets.symmetric(horizontal: 10),
|
||||||
height: 200,
|
height: 200,
|
||||||
// width: 250,
|
|
||||||
child: new NumericComboLineBarChart.withSampleData()
|
child: new NumericComboLineBarChart.withSampleData()
|
||||||
),
|
),
|
||||||
|
|
||||||
|
@ -224,7 +199,6 @@ class StatsPageState extends State<StatsPage> {
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 10),
|
padding: EdgeInsets.symmetric(horizontal: 10),
|
||||||
height: 200,
|
height: 200,
|
||||||
// width: 250,
|
|
||||||
child: new LegendWithMeasures.withSampleData()
|
child: new LegendWithMeasures.withSampleData()
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|
Reference in a new issue