fix Arabic issues

pull/7/head
Fatimah.Alshammari 1 month ago
parent b8625db7e4
commit dacd452d47

@ -905,5 +905,7 @@
"androidApp": "أندرويد",
"iosApp": "آيفون",
"pleaseWait": "يرجى الانتظار...",
"numberOfShipping": "عدد الشحنات"
"numberOfShipping": "عدد الشحنات",
"formatNeedsUpdate": "تنسيق الاعلان يحتاج الى تحديث",
"noAdsMatchesYourSearch" :"لا توجد اعلانات تطابق بحثك"
}

@ -903,5 +903,7 @@
"androidApp": "Android",
"iosApp": "iOS",
"pleaseWait": "Please wait...",
"numberOfShipping": "Number of Shipping"
"numberOfShipping": "Number of Shipping",
"formatNeedsUpdate": "Ad format needs to be updated.",
"noAdsMatchesYourSearch": "No Ads that matches your search"
}

@ -887,4 +887,6 @@ abstract class LocaleKeys {
static const iosApp = 'iosApp';
static const pleaseWait = 'pleaseWait';
static const numberOfShipping = 'numberOfShipping';
static const formatNeedsUpdate = 'formatNeedsUpdate';
static const noAdsMatchesYourSearch = 'noAdsMatchesYourSearch';
}

@ -335,6 +335,7 @@ class AdsRepoImp implements AdsRepo {
ApiConsts.getMyDraftAds,
queryParameters: draftAdsParams,
);
//print("ADS DATA = ${adsGenericModel.data}");
List<AdDetailsModel> vehicleAdsDetails = List.generate(
adsGenericModel.data.length,
(index) => AdDetailsModel.fromJson(adsGenericModel.data[index], true, adsGenericModel.totalItemsCount ?? 1),

@ -49,7 +49,7 @@ class AdsListWidget extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
children: [
const SizedBox(height: 25),
(adVM.adsFiltersCounter > 0 ? "No Ads that matches your search" : LocaleKeys.noAdsShow.tr()).toText(fontSize: 16, color: MyColors.lightTextColor, fontWeight: MyFonts.Medium),
(adVM.adsFiltersCounter > 0 ? LocaleKeys.noAdsMatchesYourSearch.tr() : LocaleKeys.noAdsShow.tr()).toText(fontSize: 16, color: MyColors.lightTextColor, fontWeight: MyFonts.Medium),
if (adVM.adsFiltersCounter > 0) ...[
const SizedBox(height: 16),
GestureDetector(
@ -162,7 +162,8 @@ class _AdCardState extends State<AdCard> {
Expanded(
child: Column(
children: [
"Ad format needs to be updated.".toText(),
LocaleKeys.formatNeedsUpdate.tr().toText(),
// "Ad format needs to be updated.".toText(),
],
),
),

@ -59,12 +59,21 @@ class CustomSettingOptionsTile extends StatelessWidget {
],
),
isForLanguage
? (isArabic ? "English": "عربي")
? Container(
padding: const EdgeInsets.only(bottom: 2),
decoration: const BoxDecoration(
border: Border(
bottom: BorderSide(
color: MyColors.primaryColor,
width: 1)
)
),
child: (isArabic ? "English": "عربي")
.toText(
fontSize: 12,
isUnderLine: true,
// isUnderLine: true,
color: MyColors.primaryColor,
)
))
: showTrailingArrow
? const Icon(Icons.arrow_forward, size: 18)
: const SizedBox(),

Loading…
Cancel
Save