|
|
@ -1,5 +1,3 @@
|
|
|
|
import 'dart:convert';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
|
@ -98,9 +96,7 @@ class _ItemsForSaleFragmentState extends State<ItemsForSaleFragment> {
|
|
|
|
currentCategoryID == getSaleCategoriesList[index].categoryID ? const Icon(Icons.check_circle_rounded, color: MyColors.greenColor, size: 16.0) : Container(),
|
|
|
|
currentCategoryID == getSaleCategoriesList[index].categoryID ? const Icon(Icons.check_circle_rounded, color: MyColors.greenColor, size: 16.0) : Container(),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
).expanded,
|
|
|
|
).expanded,
|
|
|
|
AppState().isArabic(context)
|
|
|
|
AppState().isArabic(context) ? getSaleCategoriesList[index].titleAr!.toText10() : getSaleCategoriesList[index].title!.toText10()
|
|
|
|
?getSaleCategoriesList[index].titleAr!.toText10()
|
|
|
|
|
|
|
|
:getSaleCategoriesList[index].title!.toText10()
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
).paddingOnly(left: 10, right: 10, bottom: 10, top: 12).expanded.objectContainerView(disablePadding: true),
|
|
|
|
).paddingOnly(left: 10, right: 10, bottom: 10, top: 12).expanded.objectContainerView(disablePadding: true),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -163,8 +159,8 @@ class _ItemsForSaleFragmentState extends State<ItemsForSaleFragment> {
|
|
|
|
aspectRatio: 148 / 127,
|
|
|
|
aspectRatio: 148 / 127,
|
|
|
|
child: ClipRRect(
|
|
|
|
child: ClipRRect(
|
|
|
|
borderRadius: BorderRadius.circular(6),
|
|
|
|
borderRadius: BorderRadius.circular(6),
|
|
|
|
child: Image.memory(
|
|
|
|
child: Image.network(
|
|
|
|
base64Decode(getItemsForSaleList.itemAttachments![0].content!),
|
|
|
|
getItemsForSaleList.itemAttachments![0].filePath!,
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|