mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Adds dialog before uploading error information
This commit is contained in:
parent
b6ccb57065
commit
14161c5d42
5 changed files with 98 additions and 23 deletions
|
|
@ -5,19 +5,16 @@ import 'package:InvenTree/inventree/sentry.dart';
|
|||
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
|
||||
import 'package:InvenTree/api.dart';
|
||||
import 'package:InvenTree/widget/home.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:one_context/one_context.dart';
|
||||
|
||||
import 'dsn.dart';
|
||||
|
||||
import 'package:sentry_flutter/sentry_flutter.dart';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void main() async {
|
||||
|
||||
|
||||
|
|
@ -58,6 +55,8 @@ class InvenTreeApp extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
|
||||
return MaterialApp(
|
||||
builder: OneContext().builder,
|
||||
navigatorKey: OneContext().key,
|
||||
onGenerateTitle: (BuildContext context) => I18N.of(context).appTitle,
|
||||
theme: ThemeData(
|
||||
primarySwatch: Colors.lightBlue,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue