feat(staff): integrate staff_home feature
- Created staff_main package with module, bloc, and pages - Integrated staff_home into staff_main - Updated route constants to use /worker-main - Fixed intl version conflict
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_modular/flutter_modular.dart';
|
||||
import 'package:staff_home/staff_home.dart';
|
||||
|
||||
import 'package:staff_main/src/presentation/blocs/staff_main_cubit.dart';
|
||||
import 'package:staff_main/src/presentation/constants/staff_main_routes.dart';
|
||||
@@ -28,9 +29,9 @@ class StaffMainModule extends Module {
|
||||
child: (BuildContext context) =>
|
||||
const PlaceholderPage(title: 'Payments'),
|
||||
),
|
||||
ChildRoute<dynamic>(
|
||||
ModuleRoute<dynamic>(
|
||||
StaffMainRoutes.home,
|
||||
child: (BuildContext context) => const PlaceholderPage(title: 'Home'),
|
||||
module: StaffHomeModule(),
|
||||
),
|
||||
ChildRoute<dynamic>(
|
||||
StaffMainRoutes.clockIn,
|
||||
|
||||
@@ -22,9 +22,9 @@ dependencies:
|
||||
core_localization:
|
||||
path: ../../../core_localization
|
||||
|
||||
# Features (Commented out until they are ready)
|
||||
# staff_home:
|
||||
# path: ../home
|
||||
# Features
|
||||
staff_home:
|
||||
path: ../home
|
||||
# staff_shifts:
|
||||
# path: ../shifts
|
||||
# staff_payments:
|
||||
|
||||
Reference in New Issue
Block a user