|
|
|
|
@ -69,28 +69,28 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
).expanded
|
|
|
|
|
],
|
|
|
|
|
).paddingOnly(left: 14, right: 14, top: 21, bottom: 21),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.english.tr().toText14(color: AppState().isArabic(context) ? null : MyColors.textMixColor).onPress(() {
|
|
|
|
|
context.setLocale(const Locale("en", "US"));
|
|
|
|
|
postLanguageChange(context);
|
|
|
|
|
}),
|
|
|
|
|
Container(
|
|
|
|
|
width: 1,
|
|
|
|
|
color: MyColors.darkWhiteColor,
|
|
|
|
|
height: 16,
|
|
|
|
|
margin: const EdgeInsets.only(left: 10, right: 10),
|
|
|
|
|
),
|
|
|
|
|
LocaleKeys.arabic.tr().toText14(color: !AppState().isArabic(context) ? null : MyColors.textMixColor).onPress(() {
|
|
|
|
|
context.setLocale(const Locale("ar", "SA"));
|
|
|
|
|
postLanguageChange(context);
|
|
|
|
|
}),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
).paddingOnly(left: 14, right: 14, bottom: 14),
|
|
|
|
|
// Row(
|
|
|
|
|
// children: [
|
|
|
|
|
// Row(
|
|
|
|
|
// children: [
|
|
|
|
|
// LocaleKeys.english.tr().toText14(color: AppState().isArabic(context) ? null : MyColors.textMixColor).onPress(() {
|
|
|
|
|
// context.setLocale(const Locale("en", "US"));
|
|
|
|
|
// postLanguageChange(context);
|
|
|
|
|
// }),
|
|
|
|
|
// Container(
|
|
|
|
|
// width: 1,
|
|
|
|
|
// color: MyColors.darkWhiteColor,
|
|
|
|
|
// height: 16,
|
|
|
|
|
// margin: const EdgeInsets.only(left: 10, right: 10),
|
|
|
|
|
// ),
|
|
|
|
|
// LocaleKeys.arabic.tr().toText14(color: !AppState().isArabic(context) ? null : MyColors.textMixColor).onPress(() {
|
|
|
|
|
// context.setLocale(const Locale("ar", "SA"));
|
|
|
|
|
// postLanguageChange(context);
|
|
|
|
|
// }),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ).paddingOnly(left: 14, right: 14, bottom: 14),
|
|
|
|
|
const Divider(
|
|
|
|
|
height: 1,
|
|
|
|
|
thickness: 1,
|
|
|
|
|
|