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