first commit
This commit is contained in:
commit
faf67cc6d8
148 changed files with 6580 additions and 0 deletions
34
lib/routing/router.dart
Normal file
34
lib/routing/router.dart
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:seshat/routing/routes.dart';
|
||||
import 'package:seshat/ui/add_page/view_model/add_view_model.dart';
|
||||
import 'package:seshat/ui/add_page/widgets/add_page.dart';
|
||||
import 'package:seshat/ui/core/ui/navigation_bar.dart';
|
||||
import 'package:seshat/ui/home_page/home_page.dart';
|
||||
import 'package:seshat/ui/sell_page/sell_page.dart';
|
||||
|
||||
GoRouter router() => GoRouter(
|
||||
initialLocation: Routes.add,
|
||||
routes: [
|
||||
GoRoute(
|
||||
path: Routes.home,
|
||||
pageBuilder: (context, state) => NoTransitionPage(child: HomePage()),
|
||||
routes: [
|
||||
GoRoute(
|
||||
path: Routes.add,
|
||||
pageBuilder: (context, state) =>
|
||||
NoTransitionPage(child: AddPage(viewModel: AddViewModel())),
|
||||
// routes: [
|
||||
// GoRoute(path: Routes.addForm),
|
||||
// GoRoute(path: Routes.addOwner),
|
||||
// GoRoute(path: Routes.addPrice),
|
||||
// ],
|
||||
),
|
||||
GoRoute(
|
||||
path: Routes.sell,
|
||||
pageBuilder: (context, state) => NoTransitionPage(child: SellPage()),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
);
|
||||
13
lib/routing/routes.dart
Normal file
13
lib/routing/routes.dart
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
abstract final class Routes {
|
||||
// ==[ HOME ]==
|
||||
static const home = '/';
|
||||
|
||||
// ==[ ADD ]==
|
||||
static const add = '/add';
|
||||
static const addOwner = '/add/owner';
|
||||
static const addPrice = '/add/price';
|
||||
static const addForm = '/add/form';
|
||||
|
||||
// ==[ SELL ]==
|
||||
static const sell = '/sell';
|
||||
}
|
||||
Reference in a new issue