c5cf66a210
sections are easy to add and remove
66 lines
1.7 KiB
Dart
66 lines
1.7 KiB
Dart
|
|
import 'package:flutter/material.dart';
|
|
import 'package:local_spend/common/platform/platform_scaffold.dart';
|
|
import 'package:shared_preferences/shared_preferences.dart';
|
|
import 'package:local_spend/common/functions/logout.dart';
|
|
import 'package:url_launcher/url_launcher.dart';
|
|
import 'package:local_spend/common/functions/customAbout.dart' as custom;
|
|
import 'package:local_spend/common/functions/showDialogTwoButtons.dart';
|
|
|
|
const URL = "https://flutter.io/";
|
|
const demonstration = false;
|
|
|
|
class StatsPage extends StatefulWidget {
|
|
@override
|
|
State<StatefulWidget> createState() {
|
|
return new StatsPageState();
|
|
}
|
|
}
|
|
|
|
class StatsPageState extends State<StatsPage> {
|
|
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
_saveCurrentRoute("/StatsPageState");
|
|
}
|
|
|
|
@override
|
|
void dispose() {
|
|
super.dispose();
|
|
}
|
|
|
|
_saveCurrentRoute(String lastRoute) async {
|
|
SharedPreferences preferences = await SharedPreferences.getInstance();
|
|
await preferences.setString('LastPageRoute', lastRoute);
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return PlatformScaffold(
|
|
appBar: AppBar(
|
|
backgroundColor: Colors.blue[400],
|
|
title: Text(
|
|
"Statistics",
|
|
style: TextStyle(
|
|
fontSize: 20,
|
|
color: Colors.white,
|
|
),
|
|
),
|
|
// leading: BackButton(),
|
|
centerTitle: true,
|
|
iconTheme: IconThemeData(color: Colors.black),
|
|
),
|
|
|
|
body: Container(
|
|
padding: EdgeInsets.fromLTRB(0, 15, 0, 0),
|
|
child: Column(
|
|
children: <Widget>[
|
|
// some graphs and charts here etc
|
|
Center(child : Text("(imagine this is a really cool graph!)"),)
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|