api integration
This commit is contained in:
@@ -3,6 +3,7 @@ import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:gap/gap.dart';
|
||||
|
||||
import '../../../../Globalconst.dart';
|
||||
import '../../../../core/routes/routes.dart';
|
||||
import '../../../../core/styles/app_color.dart';
|
||||
import '../../../../core/styles/app_text.dart';
|
||||
@@ -37,8 +38,10 @@ Widget bottomSection(BuildContext context) {
|
||||
context.read<LocalizationBloc>().add(ChangeLanguage(newLocale));
|
||||
if (radioBloc.selectedCountry == 1) {
|
||||
await secureStorageService.write('languageSelected', "ar");
|
||||
Globalconst.languageSelected = "ar";
|
||||
} else {
|
||||
await secureStorageService.write('languageSelected', "en");
|
||||
Globalconst.languageSelected = "en";
|
||||
}
|
||||
goRouter.pop();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user