mirror of
https://github.com/inventree/inventree-app.git
synced 2026-10-07 15:52:08 +00:00
Refactor of translation lookup!
This commit is contained in:
1 parent
b86025013d
commit
2a3e83509f
26 files changed
+339
-353
No files matched your search
+3
-1
@@ -5,6 +5,8 @@ import 'package:InvenTree/inventree/sentry.dart';
|
||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
|
||||
import 'file:///C:/inventree-app/lib/l10.dart';
|
||||
|
||||
import 'package:InvenTree/widget/home.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -57,7 +59,7 @@ class InvenTreeApp extends StatelessWidget {
|
||||
return MaterialApp(
|
||||
builder: OneContext().builder,
|
||||
navigatorKey: OneContext().key,
|
||||
onGenerateTitle: (BuildContext context) => I18N.of(context).appTitle,
|
||||
onGenerateTitle: (BuildContext context) => L10().appTitle,
|
||||
theme: ThemeData(
|
||||
primarySwatch: Colors.lightBlue,
|
||||
secondaryHeaderColor: Colors.blueGrey,
|
||||
|
||||
Reference in new issue
Block a user