Commit b5fd3c9a authored by Dasun Madushanka's avatar Dasun Madushanka

Update body.dart

parent 8f9555c1
......@@ -28,7 +28,7 @@ class Body extends StatelessWidget {
Container(
margin: EdgeInsets.only(top: 70),
decoration: BoxDecoration(
color: kBackgroundColor,
color: kBackgroundColor,//add circular border
borderRadius: BorderRadius.only(
topLeft: Radius.circular(50),
topRight: Radius.circular(50),
......@@ -36,8 +36,8 @@ class Body extends StatelessWidget {
),
),
ListView.builder(
// here we use our demo procuts list
itemCount: products.length + 1,
// here i used my tests list
itemCount: products.length + 1,//item count
itemBuilder: (context, index) {
if (index == products.length) {
return Card(
......@@ -66,7 +66,7 @@ class Body extends StatelessWidget {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => DetailsScreen(
builder: (context) => DetailsScreen(//connect with prodcut
product: products[index],
),
),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment