Remove price in home

This commit is contained in:
Moe Poi ~ 2022-05-16 12:23:21 +07:00
parent 0e27f5f2af
commit 1411cd038a
3 changed files with 1 additions and 12 deletions

View file

@ -41,7 +41,6 @@ class NewArrivalProducts extends StatelessWidget {
child: ProductCard(
title: data[index]['TITLE'],
imageUrl: "https://nekoya.moe.team/img/${data[index]['IMAGE']}",
price: 99,
bgColor: const Color(0xFFFEFBF9),
press: () {
showModalBottomSheet(
@ -69,7 +68,6 @@ class NewArrivalProducts extends StatelessWidget {
child: ProductCard(
title: 'Loading...',
imageUrl: "https://i.ibb.co/QJFLZC4/La-Darknesss-Portrait.webp",
price: 99,
bgColor: const Color(0xFFFEFBF9),
press: () {},
),

View file

@ -42,7 +42,6 @@ class PopularProducts extends StatelessWidget {
title: data[index]['TITLE'],
imageUrl:
"https://nekoya.moe.team/img/${data[index]['IMAGE']}",
price: 99,
bgColor: const Color(0xFFFEFBF9),
press: () {
showModalBottomSheet(
@ -72,7 +71,6 @@ class PopularProducts extends StatelessWidget {
title: 'Loading...',
imageUrl:
"https://i.ibb.co/QJFLZC4/La-Darknesss-Portrait.webp",
price: 99,
bgColor: const Color(0xFFFEFBF9),
press: () {},
),

View file

@ -8,13 +8,11 @@ class ProductCard extends StatelessWidget {
Key? key,
required this.imageUrl,
required this.title,
required this.price,
required this.press,
required this.bgColor,
}) : super(key: key);
final String imageUrl, title;
final VoidCallback press;
final int price;
final Color bgColor;
@override
@ -64,12 +62,7 @@ class ProductCard extends StatelessWidget {
title,
style: const TextStyle(color: Colors.white),
),
),
const SizedBox(width: defaultPadding / 4),
Text(
"\$$price",
style: const TextStyle(color: Colors.white),
),
)
],
)
],