Added TODO
This commit is contained in:
@@ -171,8 +171,8 @@ class _MainPageState extends State<MainPage> {
|
||||
Expanded(
|
||||
child: GridView.builder(
|
||||
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
||||
crossAxisCount:
|
||||
(MediaQuery.sizeOf(context).width ~/ 250).floor(),
|
||||
crossAxisCount: (MediaQuery.sizeOf(context).width ~/ 150)
|
||||
.floor(), //TODO: Make it adaptive size
|
||||
),
|
||||
itemCount: testData.length,
|
||||
itemBuilder: (context, index) {
|
||||
@@ -180,7 +180,7 @@ class _MainPageState extends State<MainPage> {
|
||||
return ProductCard(
|
||||
imagePath: Image(
|
||||
image: AssetImage('assets/${product['image']!}'),
|
||||
width: 100,
|
||||
width: 50,
|
||||
),
|
||||
name: product['name']!,
|
||||
price: product['price']!,
|
||||
|
||||
Reference in New Issue
Block a user