Add break labels and UI tweaks to order creation

Added new Spanish localization strings for break types in orders. Updated rapid order bloc to use explicit Future<void> in delay. Adjusted one-time order section header button with fixed size styling for improved UI consistency.
This commit is contained in:
Achintha Isuru
2026-01-23 02:07:23 -05:00
parent 9e513d96af
commit f5a57c7208
3 changed files with 9 additions and 2 deletions

View File

@@ -287,7 +287,10 @@
"creating": "Creando...", "creating": "Creando...",
"success_title": "¡Orden Creada!", "success_title": "¡Orden Creada!",
"success_message": "Tu solicitud de turno ha sido publicada. Los trabajadores comenzarán a postularse pronto.", "success_message": "Tu solicitud de turno ha sido publicada. Los trabajadores comenzarán a postularse pronto.",
"back_to_orders": "Volver a Órdenes" "back_to_orders": "Volver a Órdenes",
"no_break": "Sin descanso",
"paid_break": "min (Pagado)",
"unpaid_break": "min (No pagado)"
}, },
"recurring": { "recurring": {
"title": "Orden Recurrente", "title": "Orden Recurrente",

View File

@@ -44,7 +44,7 @@ class RapidOrderBloc extends Bloc<RapidOrderEvent, RapidOrderState> {
// Simulate voice recognition // Simulate voice recognition
if (newListeningState) { if (newListeningState) {
await Future.delayed(const Duration(seconds: 2)); await Future<void>.delayed(const Duration(seconds: 2));
if (state is RapidOrderInitial) { if (state is RapidOrderInitial) {
emit( emit(
(state as RapidOrderInitial).copyWith( (state as RapidOrderInitial).copyWith(

View File

@@ -32,6 +32,10 @@ class OneTimeOrderSectionHeader extends StatelessWidget {
leadingIcon: UiIcons.add, leadingIcon: UiIcons.add,
text: actionLabel!, text: actionLabel!,
iconSize: 16, iconSize: 16,
style: TextButton.styleFrom(
minimumSize: const Size(0, 24),
maximumSize: const Size(0, 24),
),
), ),
], ],
); );