change color product card on home page

This commit is contained in:
Kelvin Samuel 2022-05-15 15:19:33 +07:00
parent 1b085e4dbc
commit f4e99a7bbd

View file

@ -24,7 +24,7 @@ class ProductCard extends StatelessWidget {
width: 154, width: 154,
padding: const EdgeInsets.all(defaultPadding / 2), padding: const EdgeInsets.all(defaultPadding / 2),
decoration: const BoxDecoration( decoration: const BoxDecoration(
color: Colors.white, color: const Color(0xff212226),
borderRadius: BorderRadius.all(Radius.circular(defaultBorderRadius)), borderRadius: BorderRadius.all(Radius.circular(defaultBorderRadius)),
), ),
child: Column( child: Column(
@ -32,7 +32,7 @@ class ProductCard extends StatelessWidget {
Container( Container(
width: double.infinity, width: double.infinity,
decoration: BoxDecoration( decoration: BoxDecoration(
color: bgColor, color: const Color(0xff212226),
borderRadius: const BorderRadius.all( borderRadius: const BorderRadius.all(
Radius.circular(defaultBorderRadius)), Radius.circular(defaultBorderRadius)),
), ),
@ -47,13 +47,13 @@ class ProductCard extends StatelessWidget {
Expanded( Expanded(
child: Text( child: Text(
title, title,
style: const TextStyle(color: Colors.black), style: const TextStyle(color: Colors.white),
), ),
), ),
const SizedBox(width: defaultPadding / 4), const SizedBox(width: defaultPadding / 4),
Text( Text(
"\$$price", "\$$price",
style: Theme.of(context).textTheme.subtitle2, style: const TextStyle(color: Colors.white),
), ),
], ],
) )