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:
@@ -287,7 +287,10 @@
|
||||
"creating": "Creando...",
|
||||
"success_title": "¡Orden Creada!",
|
||||
"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": {
|
||||
"title": "Orden Recurrente",
|
||||
|
||||
@@ -44,7 +44,7 @@ class RapidOrderBloc extends Bloc<RapidOrderEvent, RapidOrderState> {
|
||||
|
||||
// Simulate voice recognition
|
||||
if (newListeningState) {
|
||||
await Future.delayed(const Duration(seconds: 2));
|
||||
await Future<void>.delayed(const Duration(seconds: 2));
|
||||
if (state is RapidOrderInitial) {
|
||||
emit(
|
||||
(state as RapidOrderInitial).copyWith(
|
||||
|
||||
@@ -32,6 +32,10 @@ class OneTimeOrderSectionHeader extends StatelessWidget {
|
||||
leadingIcon: UiIcons.add,
|
||||
text: actionLabel!,
|
||||
iconSize: 16,
|
||||
style: TextButton.styleFrom(
|
||||
minimumSize: const Size(0, 24),
|
||||
maximumSize: const Size(0, 24),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user