dev #1

Merged
aefril merged 128 commits from dev into main 2025-08-13 17:19:48 +00:00
Showing only changes of commit 2cf5ce7ae8 - Show all commits

View File

@ -23,15 +23,17 @@ class ProductCard extends StatelessWidget {
Widget build(BuildContext context) {
return GestureDetector(
onTap: () {
if (data.variants!.isEmpty) {
context.read<CheckoutBloc>().add(
CheckoutEvent.addItem(data, null),
);
} else {
showDialog(
context: context,
builder: (context) => VariantDialog(product: data),
);
if (data.isActive == true) {
if (data.variants!.isEmpty) {
context.read<CheckoutBloc>().add(
CheckoutEvent.addItem(data, null),
);
} else {
showDialog(
context: context,
builder: (context) => VariantDialog(product: data),
);
}
}
},
child: Container(
@ -161,6 +163,14 @@ class ProductCard extends StatelessWidget {
);
},
),
if (data.isActive == false)
Container(
width: double.infinity,
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(8.0)),
color: AppColors.grey.withOpacity(0.5),
),
),
],
),
),