TF-1074 Handle go to path /session
This commit is contained in:
@@ -31,58 +31,6 @@ import 'package:tmail_ui_user/main/pages/deferred_widget.dart';
|
||||
import 'package:tmail_ui_user/main/routes/app_routes.dart';
|
||||
|
||||
class AppPages {
|
||||
static final pagesOnlyOnMobile = [
|
||||
GetPage(
|
||||
name: AppRoutes.composer,
|
||||
opaque: false,
|
||||
page: () => DeferredWidget(
|
||||
composer.loadLibrary,
|
||||
() => composer.ComposerView()),
|
||||
binding: ComposerBindings()),
|
||||
GetPage(
|
||||
name: AppRoutes.destinationPicker,
|
||||
opaque: false,
|
||||
page: () => DeferredWidget(
|
||||
destination_picker.loadLibrary,
|
||||
() => destination_picker.DestinationPickerView()),
|
||||
binding: DestinationPickerBindings()),
|
||||
GetPage(
|
||||
name: AppRoutes.mailboxCreator,
|
||||
opaque: false,
|
||||
page: () => DeferredWidget(
|
||||
mailbox_creator.loadLibrary,
|
||||
() => mailbox_creator.MailboxCreatorView()),
|
||||
binding: MailboxCreatorBindings()),
|
||||
GetPage(
|
||||
name: AppRoutes.contact,
|
||||
opaque: false,
|
||||
page: () => DeferredWidget(
|
||||
contact_view.loadLibrary,
|
||||
() => contact_view.ContactView()),
|
||||
binding: ContactBindings()),
|
||||
GetPage(
|
||||
name: AppRoutes.identityCreator,
|
||||
opaque: false,
|
||||
page: () => DeferredWidget(
|
||||
identity_creator.loadLibrary,
|
||||
() => identity_creator.IdentityCreatorView()),
|
||||
binding: IdentityCreatorBindings()),
|
||||
GetPage(
|
||||
name: AppRoutes.rulesFilterCreator,
|
||||
opaque: false,
|
||||
page: () => DeferredWidget(
|
||||
rules_filter_creator.loadLibrary,
|
||||
() => rules_filter_creator.RuleFilterCreatorView()),
|
||||
binding: RulesFilterCreatorBindings()),
|
||||
GetPage(
|
||||
name: AppRoutes.emailsForwardCreator,
|
||||
opaque: false,
|
||||
page: () => DeferredWidget(
|
||||
emails_forward_creator.loadLibrary,
|
||||
() => emails_forward_creator.EmailsForwardCreatorView()),
|
||||
binding: EmailsForwardCreatorBindings()),
|
||||
];
|
||||
|
||||
static final pages = [
|
||||
GetPage(
|
||||
name: AppRoutes.home,
|
||||
@@ -109,6 +57,56 @@ class AppPages {
|
||||
() => manage_account_dashboard.ManageAccountDashBoardView()),
|
||||
binding: ManageAccountDashBoardBindings()),
|
||||
if (!BuildUtils.isWeb)
|
||||
...pagesOnlyOnMobile
|
||||
...[
|
||||
GetPage(
|
||||
name: AppRoutes.composer,
|
||||
opaque: false,
|
||||
page: () => DeferredWidget(
|
||||
composer.loadLibrary,
|
||||
() => composer.ComposerView()),
|
||||
binding: ComposerBindings()),
|
||||
GetPage(
|
||||
name: AppRoutes.destinationPicker,
|
||||
opaque: false,
|
||||
page: () => DeferredWidget(
|
||||
destination_picker.loadLibrary,
|
||||
() => destination_picker.DestinationPickerView()),
|
||||
binding: DestinationPickerBindings()),
|
||||
GetPage(
|
||||
name: AppRoutes.mailboxCreator,
|
||||
opaque: false,
|
||||
page: () => DeferredWidget(
|
||||
mailbox_creator.loadLibrary,
|
||||
() => mailbox_creator.MailboxCreatorView()),
|
||||
binding: MailboxCreatorBindings()),
|
||||
GetPage(
|
||||
name: AppRoutes.contact,
|
||||
opaque: false,
|
||||
page: () => DeferredWidget(
|
||||
contact_view.loadLibrary,
|
||||
() => contact_view.ContactView()),
|
||||
binding: ContactBindings()),
|
||||
GetPage(
|
||||
name: AppRoutes.identityCreator,
|
||||
opaque: false,
|
||||
page: () => DeferredWidget(
|
||||
identity_creator.loadLibrary,
|
||||
() => identity_creator.IdentityCreatorView()),
|
||||
binding: IdentityCreatorBindings()),
|
||||
GetPage(
|
||||
name: AppRoutes.rulesFilterCreator,
|
||||
opaque: false,
|
||||
page: () => DeferredWidget(
|
||||
rules_filter_creator.loadLibrary,
|
||||
() => rules_filter_creator.RuleFilterCreatorView()),
|
||||
binding: RulesFilterCreatorBindings()),
|
||||
GetPage(
|
||||
name: AppRoutes.emailsForwardCreator,
|
||||
opaque: false,
|
||||
page: () => DeferredWidget(
|
||||
emails_forward_creator.loadLibrary,
|
||||
() => emails_forward_creator.EmailsForwardCreatorView()),
|
||||
binding: EmailsForwardCreatorBindings()),
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user