chore : change app archticle
This commit is contained in:
29
features/auth/lib/presentation/routes/pages.dart
Normal file
29
features/auth/lib/presentation/routes/pages.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
import 'package:rasadyar_core/core.dart';
|
||||
|
||||
import '../pages/auth/logic.dart';
|
||||
import '../pages/auth/view.dart';
|
||||
|
||||
part 'paths.dart';
|
||||
|
||||
sealed class AuthPages {
|
||||
AuthPages._();
|
||||
|
||||
static List<GetPage> pages = [
|
||||
GetPage(
|
||||
name: AuthPaths.moduleList,
|
||||
page: () => AuthPage(),
|
||||
binding: BindingsBuilder(() {
|
||||
Get.lazyPut(() => AuthLogic());
|
||||
}),
|
||||
),
|
||||
|
||||
|
||||
GetPage(
|
||||
name: AuthPaths.auth,
|
||||
page: () => AuthPage(),
|
||||
binding: BindingsBuilder(() {
|
||||
Get.lazyPut(() => AuthLogic());
|
||||
}),
|
||||
),
|
||||
];
|
||||
}
|
||||
8
features/auth/lib/presentation/routes/paths.dart
Normal file
8
features/auth/lib/presentation/routes/paths.dart
Normal file
@@ -0,0 +1,8 @@
|
||||
part of 'pages.dart';
|
||||
|
||||
sealed class AuthPaths {
|
||||
AuthPaths._();
|
||||
|
||||
static const String moduleList = '/moduleList';
|
||||
static const String auth = '/Auth';
|
||||
}
|
||||
Reference in New Issue
Block a user