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