diff --git a/lib/components/new_arrival_products.dart b/lib/components/new_arrival_products.dart index c3219c9..c673fc3 100644 --- a/lib/components/new_arrival_products.dart +++ b/lib/components/new_arrival_products.dart @@ -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: () {}, ), diff --git a/lib/components/popular_products.dart b/lib/components/popular_products.dart index 8460fa3..6300791 100644 --- a/lib/components/popular_products.dart +++ b/lib/components/popular_products.dart @@ -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: () {}, ), diff --git a/lib/components/product_card.dart b/lib/components/product_card.dart index 6b00007..72dec72 100644 --- a/lib/components/product_card.dart +++ b/lib/components/product_card.dart @@ -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), - ), + ) ], ) ],