Browse Source

Merge branch 'master' into develop

gjh 2 weeks ago
parent
commit
cb51615392
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lib/main.dart

+ 4 - 0
lib/main.dart

@@ -93,6 +93,10 @@ class MyApp extends StatelessWidget {
93
           designSize: size,
93
           designSize: size,
94
           child: MaterialApp.router(
94
           child: MaterialApp.router(
95
             //debugShowCheckedModeBanner: false,
95
             //debugShowCheckedModeBanner: false,
96
+            onGenerateTitle: (ctx) => switch (appFlavor) {
97
+              flavorHst => S.of(ctx).appNameHst,
98
+              _ => S.of(ctx).appName
99
+            },
96
             builder: (ctx, child) {
100
             builder: (ctx, child) {
97
               return botToastBuilder(ctx, child);
101
               return botToastBuilder(ctx, child);
98
             },
102
             },