Add: detail page from API
This commit is contained in:
@@ -218,16 +218,7 @@ class _MainPageState extends State<MainPage> {
|
||||
onTap: () => Navigator.of(context).push(
|
||||
CustomPageRoute(
|
||||
builder: (context) => DetailPage(
|
||||
name: product.title,
|
||||
description: product.description,
|
||||
price: product.price.toString(),
|
||||
id: product.id,
|
||||
image: Image(
|
||||
image: Image.network(
|
||||
product.images[0].url)
|
||||
.image,
|
||||
width: 300,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user