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

View file

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

View file

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