mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
API refactoring:
- Error if the server version is *older* than the min required version - Display dialog boxes for different server errors
This commit is contained in:
parent
cfb3dd6506
commit
b69762ff15
8 changed files with 133 additions and 76 deletions
|
|
@ -45,9 +45,6 @@ void main() async {
|
|||
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
// Load login details
|
||||
InvenTreePreferences().loadLoginDetails();
|
||||
|
||||
runZoned<Future<void>>(() async {
|
||||
runApp(InvenTreeApp());
|
||||
}, onError: (error, stackTrace) {
|
||||
|
|
@ -63,6 +60,7 @@ class InvenTreeApp extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
return MaterialApp(
|
||||
onGenerateTitle: (BuildContext context) => I18N.of(context).appTitle,
|
||||
theme: ThemeData(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue