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,
|
||||
|
||||
Reference in New Issue
Block a user