This commit is contained in:
Patrick Alvin Alcala 2025-02-21 17:06:55 +08:00
parent a208763a67
commit b299297fa5
6 changed files with 64 additions and 63 deletions

View file

@ -15,7 +15,7 @@ class ItemCardWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
const double imageSize = 180;
const Color fontColor = Color.fromRGBO(0, 0, 0, 1);
const Color fontColor = Color.fromRGBO(0, 0, 0, 0.9);
return Card(
child: ClipRRect(
@ -38,7 +38,7 @@ class ItemCardWidget extends StatelessWidget {
TextWidget(
text: text,
size: 10,
color: Colors.black,
color: const Color.fromRGBO(0, 0, 0, 1),
bold: true,
),
TextWidget(
@ -48,10 +48,7 @@ class ItemCardWidget extends StatelessWidget {
)
],
),
const Gap(
92,
color: Colors.red,
),
const Gap(92),
TextWidget(
text: quantity.toStringAsFixed(0),
size: 12,
@ -65,11 +62,11 @@ class ItemCardWidget extends StatelessWidget {
child: Row(
children: [
Image.asset('assets/php_logo.webp',
fit: BoxFit.cover, height: 12, cacheWidth: (10 * MediaQuery.of(context).devicePixelRatio).round()),
fit: BoxFit.cover, height: 12, cacheHeight: (12 * MediaQuery.of(context).devicePixelRatio).round()),
const Gap(4),
TextWidget(
text: NumberFormat.currency(locale: "en_US", symbol: "").format(price),
size: 14,
size: 16,
bold: true,
color: fontColor,
),