2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-09-13 22:41:22 +00:00

Better use of async functions for API

- Use local_preferences for storing data
This commit is contained in:
Oliver Walters
2019-06-26 00:07:18 +10:00
parent 6e807cbed1
commit b71c665453
4 changed files with 141 additions and 31 deletions

View File

@@ -2,11 +2,13 @@ import 'package:flutter/material.dart';
import 'settings.dart';
import 'api.dart';
import 'preferences.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
@@ -21,7 +23,7 @@ class MyApp extends StatelessWidget {
// or simply save your changes to "hot reload" in a Flutter IDE).
// Notice that the counter didn't reset back to zero; the application
// is not restarted.
primarySwatch: Colors.blue,
primarySwatch: Colors.lightGreen,
),
home: MyHomePage(title: 'InvenTree'),
);