feat: Add client main shell with bottom navigation
Introduces the new client_main feature package, providing a main shell with bottom navigation for the client app. Updates routing to use /client-main instead of /client-home, adds localization for new tabs, and implements navigation logic, UI, and tests for the main shell. Also refactors create_order module bindings and cleans up unused dependencies.
This commit is contained in:
@@ -6,7 +6,7 @@ import 'package:flutter_localizations/flutter_localizations.dart';
|
||||
import 'package:flutter_modular/flutter_modular.dart';
|
||||
import 'package:client_authentication/client_authentication.dart'
|
||||
as client_authentication;
|
||||
import 'package:client_home/client_home.dart' as client_home;
|
||||
import 'package:client_main/client_main.dart' as client_main;
|
||||
import 'package:client_settings/client_settings.dart' as client_settings;
|
||||
import 'package:client_hubs/client_hubs.dart' as client_hubs;
|
||||
import 'package:client_create_order/client_create_order.dart'
|
||||
@@ -29,8 +29,8 @@ class AppModule extends Module {
|
||||
// Initial route points to the client authentication flow
|
||||
r.module('/', module: client_authentication.ClientAuthenticationModule());
|
||||
|
||||
// Client home route
|
||||
r.module('/client-home', module: client_home.ClientHomeModule());
|
||||
// Client main shell with bottom navigation (includes home as a child)
|
||||
r.module('/client-main', module: client_main.ClientMainModule());
|
||||
|
||||
// Client settings route
|
||||
r.module(
|
||||
|
||||
@@ -20,6 +20,8 @@ dependencies:
|
||||
# Feature Packages
|
||||
client_authentication:
|
||||
path: ../../packages/features/client/authentication
|
||||
client_main:
|
||||
path: ../../packages/features/client/client_main
|
||||
client_home:
|
||||
path: ../../packages/features/client/home
|
||||
client_settings:
|
||||
|
||||
Reference in New Issue
Block a user