Add client create order feature module

Introduces the client_create_order feature with navigation, BLoC, state, and UI for selecting order types. Adds English and Spanish localization keys, updates dependencies, and integrates the new module into the client app routing.
This commit is contained in:
Achintha Isuru
2026-01-22 15:29:28 -05:00
parent 772a1ba53f
commit 22ead66f71
20 changed files with 1479 additions and 10 deletions

View File

@@ -1,15 +1,15 @@
import 'package:flutter_modular/flutter_modular.dart';
/// Extension on [IModularNavigator] to provide strongly-typed navigation
/// for the client home feature.
extension ClientHomeNavigator on IModularNavigator {
/// Navigates to the client home page.
void pushClientHome() {
pushNamed('/client-home/');
}
/// Navigates to the settings page.
void pushSettings() {
pushNamed('/client-settings/');
}
void pushCreateOrder() {
pushNamed('/client/create-order/');
}
void pushRapidOrder() {
pushNamed('/client/create-order/rapid');
}
}

View File

@@ -324,8 +324,8 @@ class ClientHomePage extends StatelessWidget {
switch (id) {
case 'actions':
return ActionsWidget(
onRapidPressed: () {},
onCreateOrderPressed: () => _openOrderFormSheet(context, null),
onRapidPressed: () => Modular.to.pushRapidOrder(),
onCreateOrderPressed: () => Modular.to.pushCreateOrder(),
);
case 'reorder':
return ReorderWidget(