TF-323 Customise page name
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"@@last_modified": "2022-03-31T12:07:59.313834",
|
"@@last_modified": "2022-03-31T18:18:59.491193",
|
||||||
"initializing_data": "Initializing data...",
|
"initializing_data": "Initializing data...",
|
||||||
"@initializing_data": {
|
"@initializing_data": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
@@ -917,5 +917,11 @@
|
|||||||
"type": "text",
|
"type": "text",
|
||||||
"placeholders_order": [],
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
|
},
|
||||||
|
"page_name": "Team - Mail",
|
||||||
|
"@page_name": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
|
"placeholders": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5,6 +5,7 @@ import 'package:flutter_localizations/flutter_localizations.dart';
|
|||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:tmail_ui_user/features/caching/config/hive_cache_config.dart';
|
import 'package:tmail_ui_user/features/caching/config/hive_cache_config.dart';
|
||||||
import 'package:tmail_ui_user/main/bindings/main_bindings.dart';
|
import 'package:tmail_ui_user/main/bindings/main_bindings.dart';
|
||||||
|
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
||||||
import 'package:tmail_ui_user/main/localizations/app_localizations_delegate.dart';
|
import 'package:tmail_ui_user/main/localizations/app_localizations_delegate.dart';
|
||||||
import 'package:tmail_ui_user/main/pages/app_pages.dart';
|
import 'package:tmail_ui_user/main/pages/app_pages.dart';
|
||||||
import 'package:tmail_ui_user/main/routes/app_routes.dart';
|
import 'package:tmail_ui_user/main/routes/app_routes.dart';
|
||||||
@@ -45,6 +46,8 @@ class TMailApp extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
return supportedLocales.first;
|
return supportedLocales.first;
|
||||||
},
|
},
|
||||||
|
locale: Get.locale ?? Locale('en'),
|
||||||
|
onGenerateTitle: (context) => AppLocalizations.of(context).page_name,
|
||||||
defaultTransition: Transition.fade,
|
defaultTransition: Transition.fade,
|
||||||
initialRoute: AppRoutes.HOME,
|
initialRoute: AppRoutes.HOME,
|
||||||
getPages: AppPages.pages);
|
getPages: AppPages.pages);
|
||||||
|
|||||||
@@ -977,4 +977,10 @@ class AppLocalizations {
|
|||||||
name: 'no_internet_connection'
|
name: 'no_internet_connection'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String get page_name {
|
||||||
|
return Intl.message(
|
||||||
|
'Team - Mail',
|
||||||
|
name: 'page_name');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -29,7 +29,7 @@
|
|||||||
<!-- Favicon -->
|
<!-- Favicon -->
|
||||||
<link rel="icon" type="image/png" href="favicon.png"/>
|
<link rel="icon" type="image/png" href="favicon.png"/>
|
||||||
|
|
||||||
<title>teammail_mobile</title>
|
<title>Team - Mail</title>
|
||||||
<link rel="manifest" href="manifest.json">
|
<link rel="manifest" href="manifest.json">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Reference in New Issue
Block a user