adding tag type for shifts
This commit is contained in:
@@ -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,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user