This commit is contained in:
Patrick Alvin Alcala 2025-03-10 17:38:23 +08:00
parent 478b8e70f1
commit 55de28532f
14 changed files with 149 additions and 115 deletions

View file

@ -56,21 +56,23 @@ class ItemCardWidget extends StatelessWidget {
TextWidget(
text: text,
size: 12,
color: Colors.black,
color: const Color.fromRGBO(0, 0, 0, 1),
)
],
),
Container(
padding: EdgeInsets.all(8),
padding: EdgeInsets.symmetric(vertical: 4, horizontal: 8),
decoration: BoxDecoration(
color: quantity > 20
? const Color.fromRGBO(254, 160, 44, 1)
: const Color.fromRGBO(136, 136, 136, 1),
color: quantity == 0
? const Color.fromRGBO(162, 55, 41, 1)
: quantity > 20
? const Color.fromRGBO(246, 200, 99, 1)
: const Color.fromRGBO(136, 136, 136, 1),
borderRadius: BorderRadius.circular(20),
border: Border.all(color: const Color.fromRGBO(217, 217, 217, 1)),
),
child: TextWidget(
text: quantity.toStringAsFixed(0),
text: quantity == 0 ? 'no stock' : quantity.toStringAsFixed(0),
size: 12,
color:
quantity > 20 ? const Color.fromRGBO(0, 0, 0, 1) : const Color.fromRGBO(255, 255, 255, 1),