fix : splash animation
feat : auth with password chore : app Architecture
This commit is contained in:
33
lib/presentation/routes/app_pages.dart
Normal file
33
lib/presentation/routes/app_pages.dart
Normal file
@@ -0,0 +1,33 @@
|
||||
import 'package:get/get.dart';
|
||||
import 'package:rasadyar_app/presentation/pages/auth/auth_with_otp/logic.dart';
|
||||
import 'package:rasadyar_app/presentation/pages/auth/auth_with_otp/view.dart';
|
||||
import 'package:rasadyar_app/presentation/pages/auth/auth_with_use_and_pass/logic.dart';
|
||||
import 'package:rasadyar_app/presentation/pages/auth/auth_with_use_and_pass/view.dart';
|
||||
import 'package:rasadyar_app/presentation/pages/splash/logic.dart';
|
||||
import 'package:rasadyar_app/presentation/pages/splash/view.dart';
|
||||
|
||||
part 'app_paths.dart';
|
||||
|
||||
sealed class AppPages {
|
||||
AppPages._();
|
||||
|
||||
static const String initRoutes = AppPaths.splash;
|
||||
|
||||
static List<GetPage> pages = [
|
||||
GetPage(
|
||||
name: AppPaths.splash,
|
||||
page: () => SplashPage(),
|
||||
binding: BindingsBuilder.put(() => SplashLogic()),
|
||||
),
|
||||
GetPage(
|
||||
name: AppPaths.authWithOtp,
|
||||
page: () => AuthWithOtpPage(),
|
||||
binding: BindingsBuilder.put(() => AuthWithOtpLogic()),
|
||||
),
|
||||
GetPage(
|
||||
name: AppPaths.authWithUserAndPass,
|
||||
page: () => AuthWithUseAndPassPage(),
|
||||
binding: BindingsBuilder.put(() => AuthWithUseAndPassLogic()),
|
||||
),
|
||||
];
|
||||
}
|
||||
9
lib/presentation/routes/app_paths.dart
Normal file
9
lib/presentation/routes/app_paths.dart
Normal file
@@ -0,0 +1,9 @@
|
||||
part of 'app_pages.dart';
|
||||
|
||||
sealed class AppPaths {
|
||||
AppPaths._();
|
||||
|
||||
static const String splash = '/splash';
|
||||
static const String authWithUserAndPass = '/authWithUserAndPass';
|
||||
static const String authWithOtp = '/authWithOtp';
|
||||
}
|
||||
Reference in New Issue
Block a user