after fixed apyament

This commit is contained in:
2025-03-21 18:15:33 +05:30
parent 6a10900f68
commit 681a3932bd
18 changed files with 744 additions and 362 deletions

View File

@@ -85,9 +85,7 @@ class _FruitVeggieDetailState extends State<FruitVeggieDetail> {
fontWeight: FontWeight.w700,
),
),
actions: [
],
actions: [],
),
body: Padding(
padding: const EdgeInsets.all(8.0),
@@ -458,7 +456,6 @@ class _FruitVeggieDetailState extends State<FruitVeggieDetail> {
return discountPercentage.round();
}
Widget filterCategory() {
final activeIndexProvider = Provider.of<ProductProvider>(context);
@@ -494,8 +491,6 @@ class _FruitVeggieDetailState extends State<FruitVeggieDetail> {
itemBuilder: (context, index) {
var category = categories[index];
return Padding(
padding: const EdgeInsets.only(bottom: 8),
child: InkWell(
@@ -528,8 +523,8 @@ class _FruitVeggieDetailState extends State<FruitVeggieDetail> {
child: SizedBox(
// height: 80,
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: [
if (category.name == "ALL") ...{
if (provider.categoriesss.isNotEmpty)
@@ -564,33 +559,17 @@ class _FruitVeggieDetailState extends State<FruitVeggieDetail> {
),
)
.toList(),
child: Padding(
padding: const EdgeInsets.symmetric(
vertical: 10,
horizontal: 10,
),
child: Row(
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
children: [
SizedBox(
width: 20,
child: Text(
provider.selectedCategory?.name ??
"All",
maxLines: 1,
style: context.customMedium(
APPCOLOR.balck1A1A1A,
12,
),
),
),
Icon(
Icons.arrow_drop_down,
size: 20,
color: APPCOLOR.balck1A1A1A,
),
],
child: Center(
child: Container(
child: AppNetworkImage(
height: 50,
width: 60,
imageUrl: provider
.selectedCategory?.image ??
'https://i.pinimg.com/originals/a5/f3/5f/a5f35fb23e942809da3df91b23718e8d.png',
backGroundColor: APPCOLOR.bgGrey,
radius: 10,
),
),
),
),
@@ -600,7 +579,7 @@ class _FruitVeggieDetailState extends State<FruitVeggieDetail> {
Center(
child: Container(
child: AppNetworkImage(
height: 30,
height: 50,
width: 50,
imageUrl: category.image ??
'https://i.pinimg.com/originals/a5/f3/5f/a5f35fb23e942809da3df91b23718e8d.png',
@@ -630,16 +609,16 @@ class _FruitVeggieDetailState extends State<FruitVeggieDetail> {
],
),
},
SizedBox(
width: 5,
),
Container(
width: 2,
// height: 60,
color: activeIndexProvider.activeIndex == index
? APPCOLOR.lightGreen
: Colors.transparent,
),
// SizedBox(
// width: 5,
// ),
// Container(
// width: 2,
// height: 0,
// color: activeIndexProvider.activeIndex == index
// ? APPCOLOR.lightGreen
// : Colors.transparent,
// ),
],
),
),