Add: detail page from API

This commit is contained in:
2024-05-22 22:14:24 +03:00
parent e7073cec67
commit e57c7dc0ea
3 changed files with 98 additions and 87 deletions

View File

@@ -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,
),
),
),
),