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 createState() { return new StatsPageState(); } } class StatsPageState extends State { @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: [ // some graphs and charts here etc Center(child : Text("(imagine this is a really cool graph!)"),) ], ), ), ); } }