mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Refactor of translation lookup!
This commit is contained in:
parent
b86025013d
commit
2a3e83509f
26 changed files with 339 additions and 353 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue