feat: Add orderId and normalized orderType to the Shift model to enable UI grouping and type-badging in shift displays.
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_modular/flutter_modular.dart';
|
||||
|
||||
|
||||
import 'package:design_system/design_system.dart';
|
||||
import 'package:core_localization/core_localization.dart';
|
||||
import 'package:krow_core/core.dart';
|
||||
|
||||
|
||||
/// Card widget for displaying pending payment information, using design system tokens.
|
||||
class PendingPaymentCard extends StatelessWidget {
|
||||
/// Creates a [PendingPaymentCard].
|
||||
@@ -21,7 +19,10 @@ class PendingPaymentCard extends StatelessWidget {
|
||||
padding: const EdgeInsets.all(UiConstants.space4),
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
colors: [UiColors.primary.withOpacity(0.08), UiColors.primary.withOpacity(0.04)],
|
||||
colors: [
|
||||
UiColors.primary.withOpacity(0.08),
|
||||
UiColors.primary.withOpacity(0.04),
|
||||
],
|
||||
begin: Alignment.centerLeft,
|
||||
end: Alignment.centerRight,
|
||||
),
|
||||
@@ -59,7 +60,9 @@ class PendingPaymentCard extends StatelessWidget {
|
||||
),
|
||||
Text(
|
||||
pendingI18n.subtitle,
|
||||
style: UiTypography.body3r.copyWith(color: UiColors.mutedForeground),
|
||||
style: UiTypography.body3r.copyWith(
|
||||
color: UiColors.mutedForeground,
|
||||
),
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
],
|
||||
@@ -70,10 +73,7 @@ class PendingPaymentCard extends StatelessWidget {
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
Text(
|
||||
'\$285.00',
|
||||
style: UiTypography.headline4m,
|
||||
),
|
||||
Text('\$285.00', style: UiTypography.headline4m),
|
||||
SizedBox(width: UiConstants.space2),
|
||||
Icon(
|
||||
UiIcons.chevronRight,
|
||||
|
||||
Reference in New Issue
Block a user