TF-1074 Handle go to path /dashboard
This commit is contained in:
@@ -59,6 +59,6 @@ class CoreBindings extends Bindings {
|
||||
void _bindingUtils() {
|
||||
Get.put(const Uuid());
|
||||
Get.put(CompressFileUtils());
|
||||
Get.lazyPut(() => AppConfigLoader());
|
||||
Get.put(AppConfigLoader());
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:get/get_navigation/src/routes/get_route.dart';
|
||||
import 'package:tmail_ui_user/features/composer/presentation/composer_bindings.dart';
|
||||
@@ -47,13 +48,14 @@ class AppPages {
|
||||
name: AppRoutes.dashboard,
|
||||
page: () => DeferredWidget(mailbox_dashboard.loadLibrary, () => mailbox_dashboard.MailboxDashBoardView()),
|
||||
binding: MailboxDashBoardBindings()),
|
||||
GetPage(
|
||||
name: AppRoutes.composer,
|
||||
opaque: false,
|
||||
page: () {
|
||||
ComposerBindings().dependencies();
|
||||
return DeferredWidget(composer.loadLibrary, () => composer.ComposerView());
|
||||
}),
|
||||
if (!BuildUtils.isWeb)
|
||||
GetPage(
|
||||
name: AppRoutes.composer,
|
||||
opaque: false,
|
||||
page: () {
|
||||
ComposerBindings().dependencies();
|
||||
return DeferredWidget(composer.loadLibrary, () => composer.ComposerView());
|
||||
}),
|
||||
GetPage(
|
||||
name: AppRoutes.destinationPicker,
|
||||
opaque: false,
|
||||
|
||||
@@ -2,7 +2,7 @@ abstract class AppRoutes {
|
||||
static const home = '/';
|
||||
static const login = '/login';
|
||||
static const session = '/session';
|
||||
static const dashboard = '/dashBoard';
|
||||
static const dashboard = '/dashboard';
|
||||
static const composer = '/composer';
|
||||
static const destinationPicker = '/destination_picker';
|
||||
static const settings = '/settings';
|
||||
|
||||
Reference in New Issue
Block a user