reports page implementation
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:billing/billing.dart';
|
||||
import 'package:client_reports/client_reports.dart';
|
||||
import 'package:client_home/client_home.dart';
|
||||
import 'package:client_coverage/client_coverage.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -8,7 +9,6 @@ import 'package:view_orders/view_orders.dart';
|
||||
|
||||
import 'presentation/blocs/client_main_cubit.dart';
|
||||
import 'presentation/pages/client_main_page.dart';
|
||||
import 'presentation/pages/placeholder_page.dart';
|
||||
|
||||
class ClientMainModule extends Module {
|
||||
@override
|
||||
@@ -38,10 +38,9 @@ class ClientMainModule extends Module {
|
||||
ClientPaths.childRoute(ClientPaths.main, ClientPaths.orders),
|
||||
module: ViewOrdersModule(),
|
||||
),
|
||||
ChildRoute<dynamic>(
|
||||
ModuleRoute<dynamic>(
|
||||
ClientPaths.childRoute(ClientPaths.main, ClientPaths.reports),
|
||||
child: (BuildContext context) =>
|
||||
const PlaceholderPage(title: 'Reports'),
|
||||
module: ReportsModule(),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
@@ -36,6 +36,7 @@ class ClientMainBottomBar extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final t = Translations.of(context);
|
||||
// Client App colors from design system
|
||||
const Color activeColor = UiColors.textPrimary;
|
||||
const Color inactiveColor = UiColors.textInactive;
|
||||
@@ -99,6 +100,13 @@ class ClientMainBottomBar extends StatelessWidget {
|
||||
activeColor: activeColor,
|
||||
inactiveColor: inactiveColor,
|
||||
),
|
||||
_buildNavItem(
|
||||
index: 4,
|
||||
icon: UiIcons.chart,
|
||||
label: t.client_main.tabs.reports,
|
||||
activeColor: activeColor,
|
||||
inactiveColor: inactiveColor,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -24,6 +24,8 @@ dependencies:
|
||||
path: ../home
|
||||
client_coverage:
|
||||
path: ../client_coverage
|
||||
client_reports:
|
||||
path: ../reports
|
||||
view_orders:
|
||||
path: ../view_orders
|
||||
billing:
|
||||
|
||||
Reference in New Issue
Block a user