adding tag type for shifts

This commit is contained in:
José Salazar
2026-02-18 19:34:58 -05:00
parent 8b6061cb30
commit fe28396a58

View File

@@ -216,8 +216,8 @@ class _MyShiftCardState extends State<MyShiftCard> {
letterSpacing: 0.5,
),
),
// Shift Type Badge
if (status == 'open' || status == 'pending') ...[
// Shift Type Badge (Order type)
if ((widget.shift.orderType ?? '').isNotEmpty) ...[
const SizedBox(width: UiConstants.space2),
Container(
padding: const EdgeInsets.symmetric(
@@ -225,13 +225,14 @@ class _MyShiftCardState extends State<MyShiftCard> {
vertical: 2,
),
decoration: BoxDecoration(
color: UiColors.primary.withValues(alpha: 0.1),
color: UiColors.background,
borderRadius: UiConstants.radiusSm,
border: Border.all(color: UiColors.border),
),
child: Text(
_getShiftType(),
style: UiTypography.footnote2m.copyWith(
color: UiColors.primary,
color: UiColors.textSecondary,
),
),
),