Skip to content

Commit 8d6c6d8

Browse files
shaileshmishrashaileshmishra
authored andcommitted
🐛 bugfix
1 parent feeabee commit 8d6c6d8

File tree

11 files changed

+5
-12
lines changed

11 files changed

+5
-12
lines changed

lib/screen/cart/cart_page.dart

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,14 @@ class CartPage extends StatefulWidget {
1212
}
1313

1414
class _CartPageState extends State<CartPage> {
15-
List<Product> products;
16-
17-
@override
18-
void initState() {
19-
super.initState();
20-
products = Res.fetchProducts();
21-
}
22-
2315
@override
2416
Widget build(BuildContext context) {
17+
List<Product> products = Res.fetchProducts();
2518
return Scaffold(
26-
backgroundColor: Colors.grey.shade200,
19+
//backgroundColor: Colors.grey.shade200,
2720
appBar: buildAppBar(context),
2821
body: Padding(
29-
padding: const EdgeInsets.all(8.0),
22+
padding: const EdgeInsets.all(10.0),
3023
child: Expanded(
3124
child: ListView.builder(
3225
itemCount: products.length,

lib/screen/cart/components/_item_cart_view.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import '_card_img.dart';
66
Card buildCartCard(product) {
77
return Card(
88
elevation: 0,
9+
margin: EdgeInsets.all(10),
910
child: Column(
1011
children: [
1112
Row(

lib/screen/details/detail_page.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import 'component/_row_price_rating.dart';
33
import 'component/_build_app_bar.dart';
44

55
import '../../constant.dart';
6-
import '../../helper/_utils.dart';
76
import '../../models/Product.dart';
87
import 'component/_build_cart_btn.dart';
98
import 'component/_image_view.dart';
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)