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) { Widget build(BuildContext context) {
return GestureDetector( return GestureDetector(
onTap: () { onTap: () {
if (data.variants!.isEmpty) { if (data.isActive == true) {
context.read<CheckoutBloc>().add( if (data.variants!.isEmpty) {
CheckoutEvent.addItem(data, null), context.read<CheckoutBloc>().add(
); CheckoutEvent.addItem(data, null),
} else { );
showDialog( } else {
context: context, showDialog(
builder: (context) => VariantDialog(product: data), context: context,
); builder: (context) => VariantDialog(product: data),
);
}
} }
}, },
child: Container( 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),
),
),
], ],
), ),
), ),