feat: Update navigation and module imports for staff onboarding and profile features
This commit is contained in:
@@ -8,22 +8,22 @@ import 'package:flutter_modular/flutter_modular.dart';
|
||||
extension ProfileNavigator on IModularNavigator {
|
||||
/// Navigates to the personal info page.
|
||||
void pushPersonalInfo() {
|
||||
pushNamed('./onboarding/personal-info');
|
||||
pushNamed('../onboarding/personal-info');
|
||||
}
|
||||
|
||||
/// Navigates to the emergency contact page.
|
||||
void pushEmergencyContact() {
|
||||
pushNamed('./emergency-contact');
|
||||
pushNamed('../emergency-contact');
|
||||
}
|
||||
|
||||
/// Navigates to the experience page.
|
||||
void pushExperience() {
|
||||
pushNamed('./experience');
|
||||
pushNamed('../experience');
|
||||
}
|
||||
|
||||
/// Navigates to the attire page.
|
||||
void pushAttire() {
|
||||
pushNamed('/profile/onboarding/attire');
|
||||
pushNamed('../onboarding/attire');
|
||||
}
|
||||
|
||||
/// Navigates to the documents page.
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_modular/flutter_modular.dart';
|
||||
import 'package:krow_data_connect/krow_data_connect.dart';
|
||||
import 'package:staff_profile_info/staff_profile_info.dart';
|
||||
import 'package:staff_emergency_contact/staff_emergency_contact.dart';
|
||||
import 'package:staff_profile_experience/staff_profile_experience.dart';
|
||||
|
||||
import 'data/repositories/profile_repository_impl.dart';
|
||||
import 'domain/repositories/profile_repository.dart';
|
||||
@@ -54,8 +51,5 @@ class StaffProfileModule extends Module {
|
||||
@override
|
||||
void routes(RouteManager r) {
|
||||
r.child('/', child: (BuildContext context) => const StaffProfilePage());
|
||||
r.module('/onboarding', module: StaffProfileInfoModule());
|
||||
r.module('/emergency-contact', module: StaffEmergencyContactModule());
|
||||
r.module('/experience', module: StaffProfileExperienceModule());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,9 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_modular/flutter_modular.dart';
|
||||
import 'package:staff_home/staff_home.dart';
|
||||
import 'package:staff_profile/staff_profile.dart';
|
||||
import 'package:staff_profile_info/staff_profile_info.dart';
|
||||
import 'package:staff_emergency_contact/staff_emergency_contact.dart';
|
||||
import 'package:staff_profile_experience/staff_profile_experience.dart';
|
||||
|
||||
import 'package:staff_main/src/presentation/blocs/staff_main_cubit.dart';
|
||||
import 'package:staff_main/src/presentation/constants/staff_main_routes.dart';
|
||||
@@ -45,5 +48,8 @@ class StaffMainModule extends Module {
|
||||
),
|
||||
],
|
||||
);
|
||||
r.module('/onboarding', module: StaffProfileInfoModule());
|
||||
r.module('/emergency-contact', module: StaffEmergencyContactModule());
|
||||
r.module('/experience', module: StaffProfileExperienceModule());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,6 +27,12 @@ dependencies:
|
||||
path: ../home
|
||||
staff_profile:
|
||||
path: ../profile
|
||||
staff_profile_info:
|
||||
path: ../profile_sections/onboarding/profile_info
|
||||
staff_emergency_contact:
|
||||
path: ../profile_sections/onboarding/emergency_contact
|
||||
staff_profile_experience:
|
||||
path: ../profile_sections/onboarding/experience
|
||||
# staff_shifts:
|
||||
# path: ../shifts
|
||||
# staff_payments:
|
||||
|
||||
Reference in New Issue
Block a user