added linkPhone use cases, auth repository providers and data folder
This commit is contained in:
1
apps/mobile_app/lib/config/env/env.dart
vendored
1
apps/mobile_app/lib/config/env/env.dart
vendored
@@ -2,6 +2,7 @@ import 'package:flutter_dotenv/flutter_dotenv.dart';
|
||||
|
||||
class Env {
|
||||
static String get apiBaseUrl => dotenv.env['API_BASE_URL'] ?? '';
|
||||
static String get apiOrigin => dotenv.env['API_ORIGIN'] ?? '';
|
||||
|
||||
// static String get apiKey => dotenv.env['API_KEY'] ?? '';
|
||||
}
|
||||
|
||||
@@ -4,6 +4,8 @@ import 'env.dart';
|
||||
class QuestiaEnvConfig implements EnvConfig {
|
||||
@override
|
||||
String get apiBaseUrl => Env.apiBaseUrl;
|
||||
@override
|
||||
String get apiOrigin => Env.apiOrigin;
|
||||
|
||||
// @override
|
||||
// String get apiKey => Env.apiKey;
|
||||
|
||||
@@ -15,7 +15,7 @@ late final GoRouter appRouter;
|
||||
void configureAppRouter() {
|
||||
appRouter = GoRouter(
|
||||
navigatorKey: rootNavigatorKey,
|
||||
initialLocation: AppRoutes.linkPhone,
|
||||
initialLocation: AppRoutes.login,
|
||||
debugLogDiagnostics: true,
|
||||
routes: [
|
||||
GoRoute(
|
||||
@@ -35,13 +35,13 @@ void configureAppRouter() {
|
||||
),
|
||||
GoRoute(
|
||||
path: AppRoutes.linkPhone,
|
||||
name: 'link_phone',
|
||||
pageBuilder: LinkPhoneBuilder().buildPage,
|
||||
name: 'request_link_phone',
|
||||
pageBuilder: RequestLinkPhoneBuilder().buildPage,
|
||||
),
|
||||
GoRoute(
|
||||
path: AppRoutes.phoneCode,
|
||||
name: 'phone_code',
|
||||
pageBuilder: PhoneCodeBuilder().buildPage,
|
||||
name: 'Verify_link_phone_code',
|
||||
pageBuilder: VerifyLinkPhoneCodeBuilder().buildPage,
|
||||
),
|
||||
GoRoute(
|
||||
path: AppRoutes.recoverPassword,
|
||||
|
||||
Reference in New Issue
Block a user