TF-2387 Add TwakeWelcome page the first time app launch

This commit is contained in:
dab246
2024-01-02 19:07:19 +07:00
committed by Dat H. Pham
parent 064692d8c3
commit 1393e2cd07
10 changed files with 152 additions and 4 deletions
@@ -4238,4 +4238,25 @@ class AppLocalizations {
name: 'thisFieldCannotContainOnlySpaces',
);
}
String get descriptionWelcomeTo {
return Intl.message(
'End-to-end encryption, collaborative\n features for secure and efficient\n teamwork',
name: 'descriptionWelcomeTo',
);
}
String get createTwakeId {
return Intl.message(
'Create Twake ID',
name: 'createTwakeId',
);
}
String get useCompanyServer {
return Intl.message(
'Use company server',
name: 'useCompanyServer',
);
}
}
+6
View File
@@ -28,6 +28,8 @@ import 'package:tmail_ui_user/features/mailbox_dashboard/presentation/mailbox_da
import 'package:tmail_ui_user/features/manage_account/presentation/manage_account_dashboard_bindings.dart';
import 'package:tmail_ui_user/features/manage_account/presentation/manage_account_dashboard_view.dart' deferred as manage_account_dashboard;
import 'package:tmail_ui_user/features/search/mailbox/presentation/search_mailbox_bindings.dart';
import 'package:tmail_ui_user/features/starting_page/presentation/twake_welcome/twake_welcome_bindings.dart';
import 'package:tmail_ui_user/features/starting_page/presentation/twake_welcome/twake_welcome_view.dart';
import 'package:tmail_ui_user/features/unknown_route_page/unknown_route_page_view.dart';
import 'package:tmail_ui_user/main/pages/deferred_widget.dart';
import 'package:tmail_ui_user/main/routes/app_routes.dart';
@@ -83,6 +85,10 @@ class AppPages {
unknownRoutePage,
if (PlatformInfo.isMobile)
...[
GetPage(
name: AppRoutes.twakeWelcome,
page: () => const TwakeWelcomeView(),
binding: TwakeWelcomeBindings()),
GetPage(
name: AppRoutes.composer,
page: () => DeferredWidget(
+1
View File
@@ -1,5 +1,6 @@
abstract class AppRoutes {
static const home = '/';
static const twakeWelcome = '/twake_welcome';
static const login = '/login';
static const dashboard = '/dashboard';
static const dashboardWithParameter = '/dashboard/:id';