Skip to content

Commit ad200d4

Browse files
committed
fixed add to cart button 2
1 parent 7ca9a3b commit ad200d4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lib/features/home/presentation/customer_widgets/customer_product_card.dart

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,15 @@ class CustomerProductCard extends StatelessWidget {
122122
),
123123
// Show Icon on mobile, Text on desktop
124124
child: isMobile
125-
? const Icon(Icons.shopping_cart_outlined, color: Colors.white, size: 20)
125+
? const Row(
126+
mainAxisAlignment: MainAxisAlignment.center,
127+
mainAxisSize: MainAxisSize.min, // Keeps content compact
128+
children: [
129+
Icon(Icons.shopping_cart_outlined, color: Colors.white, size: 16),
130+
SizedBox(width: 4),
131+
Text("Add", style: TextStyle(fontSize: 12, color: Colors.white)),
132+
],
133+
)
126134
: const Text("Add to Cart", style: TextStyle(fontSize: 12, color: Colors.white)),
127135
),
128136
);

0 commit comments

Comments
 (0)