refactor: enhance widget visibility logic and improve UI consistency across multiple components
This commit is contained in:
@@ -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,
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user