added linkPhone use cases, auth repository providers and data folder

This commit is contained in:
AlcalaJulian
2025-12-09 10:08:36 +01:00
parent 760e94ffe9
commit 0f30c7f422
34 changed files with 470 additions and 183 deletions

View File

@@ -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'] ?? '';
}

View File

@@ -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;

View File

@@ -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,