Commit b5fd3c9a authored by Dasun Madushanka's avatar Dasun Madushanka

Update body.dart

parent 8f9555c1
...@@ -28,7 +28,7 @@ class Body extends StatelessWidget { ...@@ -28,7 +28,7 @@ class Body extends StatelessWidget {
Container( Container(
margin: EdgeInsets.only(top: 70), margin: EdgeInsets.only(top: 70),
decoration: BoxDecoration( decoration: BoxDecoration(
color: kBackgroundColor, color: kBackgroundColor,//add circular border
borderRadius: BorderRadius.only( borderRadius: BorderRadius.only(
topLeft: Radius.circular(50), topLeft: Radius.circular(50),
topRight: Radius.circular(50), topRight: Radius.circular(50),
...@@ -36,8 +36,8 @@ class Body extends StatelessWidget { ...@@ -36,8 +36,8 @@ class Body extends StatelessWidget {
), ),
), ),
ListView.builder( ListView.builder(
// here we use our demo procuts list // here i used my tests list
itemCount: products.length + 1, itemCount: products.length + 1,//item count
itemBuilder: (context, index) { itemBuilder: (context, index) {
if (index == products.length) { if (index == products.length) {
return Card( return Card(
...@@ -66,7 +66,7 @@ class Body extends StatelessWidget { ...@@ -66,7 +66,7 @@ class Body extends StatelessWidget {
Navigator.push( Navigator.push(
context, context,
MaterialPageRoute( MaterialPageRoute(
builder: (context) => DetailsScreen( builder: (context) => DetailsScreen(//connect with prodcut
product: products[index], 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