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

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

View File

@@ -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),
),
),
],
);