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:
@@ -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