refactor: enhance widget visibility logic and improve UI consistency across multiple components

This commit is contained in:
Achintha Isuru
2026-01-30 02:12:29 -05:00
parent ed71d2b4a3
commit d07183b6ac
6 changed files with 37 additions and 65 deletions

View File

@@ -308,14 +308,15 @@ class _ViewOrderCardState extends State<ViewOrderCard> {
children: <Widget>[
Row(
children: <Widget>[
if (order.workersNeeded != 0)
const Icon(
UiIcons.success,
UiIcons.error,
size: 16,
color: UiColors.textSuccess,
color: UiColors.textError,
),
const SizedBox(width: 8),
Text(
'${order.workersNeeded} Workers Filled',
'${order.workersNeeded} Workers Needed',
style: UiTypography.body2m.textPrimary,
),
],