adding i18n to all other pages
This commit is contained in:
@@ -20,6 +20,7 @@ import 'package:http/http.dart' as http;
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
import '../../Utils/color_constants.dart';
|
||||
import '../../Utils/size_utils.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
import '../../providers/tab_navigation_provider.dart';
|
||||
import '../../providers/token_manager.dart';
|
||||
import '../../resources/api_constants.dart';
|
||||
@@ -400,7 +401,7 @@ class _TabbedLayoutComponentState extends State<TabbedLayoutComponent> {
|
||||
extendBodyBehindAppBar: true,
|
||||
//bottomNavigationBar: AppFooter(),
|
||||
body: screens.isEmpty
|
||||
? const Text("Loading...")
|
||||
? Text(AppLocalizations.of(context)!.loading)
|
||||
: ListView.builder(
|
||||
itemCount: screens.length,
|
||||
scrollDirection: Axis.vertical,
|
||||
@@ -453,7 +454,7 @@ class _TabbedLayoutComponentState extends State<TabbedLayoutComponent> {
|
||||
GButton(
|
||||
icon: FluentIcons.home_32_regular,
|
||||
iconSize: 36,
|
||||
text: 'Home',
|
||||
text: AppLocalizations.of(context)!.navHome,
|
||||
onPressed: () {
|
||||
print('home');
|
||||
},
|
||||
@@ -461,7 +462,7 @@ class _TabbedLayoutComponentState extends State<TabbedLayoutComponent> {
|
||||
GButton(
|
||||
icon: FluentIcons.people_32_regular,
|
||||
iconSize: 36,
|
||||
text: 'Contacts',
|
||||
text: AppLocalizations.of(context)!.navContacts,
|
||||
onPressed: () {
|
||||
print('contacts');
|
||||
// Navigator.push(
|
||||
@@ -476,7 +477,7 @@ class _TabbedLayoutComponentState extends State<TabbedLayoutComponent> {
|
||||
),
|
||||
GButton(
|
||||
icon: Icons.wallet,
|
||||
text: 'Wallet',
|
||||
text: AppLocalizations.of(context)!.navWallet,
|
||||
iconSize: 34,
|
||||
onPressed: () {
|
||||
print('wallet');
|
||||
|
||||
Reference in New Issue
Block a user