fixed arabic version

merge-update-with-lab-changes
Fatimah Alshammari 4 years ago
parent a4bf52818e
commit bdededa397

@ -44,8 +44,8 @@ class _MyReviewsPageState extends State<MyReviewsPage> {
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Text(
'There is no data',
child: Text(TranslationBase.of(context).noData,
// 'There is no data',
style: TextStyle(fontSize: 30),
),
)

@ -243,9 +243,10 @@ class _OrderPageState extends State<OrderPage>
color: Colors.blue[700],
borderRadius:
BorderRadius.circular(30.0)),
child: deliveredOrderList[index]
.orderStatusId ==
30
child: deliveredOrderList[index].orderStatusId == 30 ||
deliveredOrderList[index].orderStatusId == 997 ||
deliveredOrderList[index].orderStatusId == 994
// deliveredOrderList[index].orderStatusId == 30
? Text(
// deliveredOrderList[0].orderStatus.toString().substring(12),
TranslationBase.of(context)
@ -508,9 +509,11 @@ class _OrderPageState extends State<OrderPage>
color: Colors.green,
borderRadius:
BorderRadius.circular(30.0)),
child: processingOrderList[index]
.orderStatusId ==
20
child: processingOrderList[index].orderStatusId == 20 ||
processingOrderList[index].orderStatusId == 995 ||
processingOrderList[index].orderStatusId == 998 ||
processingOrderList[index].orderStatusId == 999
// processingOrderList[index].orderStatusId == 20
? Text(
// deliveredOrderList[0].orderStatus.toString().substring(12),
TranslationBase.of(context)

@ -121,17 +121,40 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
),
color: getStatusBackgroundColor(),
borderRadius: BorderRadius.circular(30.0)),
child: Text(
child: model.orderListModel[0].orderStatusId == 30 ||
model.orderListModel[0].orderStatusId == 997 ||
model.orderListModel[0].orderStatusId == 994
// deliveredOrderList[index].orderStatusId == 30
? Text(
// deliveredOrderList[0].orderStatus.toString().substring(12),
TranslationBase.of(context).deliveredOrder,
style: TextStyle(
color: Colors.white,
fontSize: 15.0,
fontWeight: FontWeight.bold,
),
)
: Text(
languageID == "ar"
? model.orderListModel[0].orderStatusn
: model.orderListModel[0].orderStatus,
// TranslationBase.of(context).delivered,
? model.orderListModel[0].orderStatusn.toString()
: model.orderListModel[0].orderStatus.toString(),
style: TextStyle(
color: Colors.white,
fontSize: 13.0,
fontWeight: FontWeight.bold,
),
),
)
// Text(
// languageID == "ar"
// ? model.orderListModel[0].orderStatusn
// : model.orderListModel[0].orderStatus,
//// TranslationBase.of(context).delivered,
// style: TextStyle(
// color: Colors.white,
// fontSize: 13.0,
// fontWeight: FontWeight.bold,
// ),
// ),
),
],
),

@ -540,61 +540,29 @@ class _SubCategorisePageState extends State<SubCategorisePage> {
width: 200,
child: Button(
onTap:
() async {
String
categoriesId =
"";
for (CategoriseParentModel category
in entityList) {
if (categoriesId ==
"") {
categoriesId =
category
.id;
() async {String categoriesId = "";
for (CategoriseParentModel category in entityList) {
if (categoriesId == "") {categoriesId = category.id;
} else {
categoriesId =
"$categoriesId,${category.id}";
categoriesId = "$categoriesId,${category.id}";
}
}
String
brandIds =
"";
for (CategoriseParentModel brand
in entityListBrands) {
if (brandIds ==
"") {
brandIds =
brand
.id;
String brandIds = "";
for (CategoriseParentModel brand in entityListBrands) {
if (brandIds == "") {brandIds = brand.id;
} else {
brandIds =
"$brandIds,${brand.id}";
brandIds = "$brandIds,${brand.id}";
}
}
GifLoaderDialogUtils
.showMyDialog(
context);
GifLoaderDialogUtils.showMyDialog(context);
await model.getFilteredSubProducts(
min: minField
.text
.toString(),
max: maxField
.text
.toString(),
categoryId:
categoriesId,
brandId:
brandIds);
GifLoaderDialogUtils
.hideDialog(
context);
Navigator.pop(
context);
await model.getFilteredSubProducts(min: minField.text.toString(),
max: maxField.text.toString(), categoryId: categoriesId,
brandId: brandIds);
GifLoaderDialogUtils.hideDialog(context);
Navigator.pop(context);
},
label: TranslationBase.of(
context)
.apply,
label: TranslationBase.of(context).apply,
// 'Apply',
backgroundColor:
Colors

Loading…
Cancel
Save