Fix build errors: localization syntax, key paths, and ViewOrderCard widget
This commit is contained in:
@@ -63,6 +63,8 @@ class OneTimeOrderSuccessView extends StatelessWidget {
|
||||
color: UiColors.accent,
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
|
||||
|
||||
child: const Center(
|
||||
child: Icon(
|
||||
UiIcons.check,
|
||||
|
||||
@@ -72,6 +72,12 @@ class _RapidOrderFormState extends State<_RapidOrderForm> {
|
||||
TextPosition(offset: _messageController.text.length),
|
||||
);
|
||||
}
|
||||
} else if (state is RapidOrderFailure) {
|
||||
UiSnackbar.show(
|
||||
context,
|
||||
message: translateErrorKey(state.error),
|
||||
type: UiSnackbarType.error,
|
||||
);
|
||||
}
|
||||
},
|
||||
child: Scaffold(
|
||||
|
||||
Reference in New Issue
Block a user