From 2fa5580f02790f02a70cd61a413573edd2697e70 Mon Sep 17 00:00:00 2001 From: cho4u4o Date: Tue, 29 Oct 2024 09:18:48 +0900 Subject: [PATCH] design : make product card responsive --- lib/widgets/product_card.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/widgets/product_card.dart b/lib/widgets/product_card.dart index 2b9d2f5..117f505 100644 --- a/lib/widgets/product_card.dart +++ b/lib/widgets/product_card.dart @@ -14,6 +14,7 @@ class ProductCard extends StatelessWidget { @override Widget build(BuildContext context) { + var screenHeight = MediaQuery.of(context).size.height; var screenWidth = MediaQuery.of(context).size.width; return InkWell( onTap: () { @@ -28,7 +29,7 @@ class ProductCard extends StatelessWidget { }, child: Container( width: (screenWidth - 55) / 2, - height: 230, + height: screenHeight * 0.24, padding: const EdgeInsets.all(10), decoration: BoxDecoration( borderRadius: BorderRadius.circular(20),