feat: Refactor Staff Profile page to use ProfileCubit and improve loading logic

This commit is contained in:
Achintha Isuru
2026-01-24 14:46:35 -05:00
parent 96ab07b58d
commit a38afb1940
6 changed files with 233 additions and 224 deletions

View File

@@ -1,6 +1,7 @@
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_main/src/presentation/blocs/staff_main_cubit.dart';
import 'package:staff_main/src/presentation/constants/staff_main_routes.dart';
@@ -38,10 +39,9 @@ class StaffMainModule extends Module {
child: (BuildContext context) =>
const PlaceholderPage(title: 'Clock In'),
),
ChildRoute<dynamic>(
ModuleRoute<dynamic>(
StaffMainRoutes.profile,
child: (BuildContext context) =>
const PlaceholderPage(title: 'Profile'),
module: StaffProfileModule(),
),
],
);