forked from eatvio/eatvio_app
42 lines
1.4 KiB
Dart
42 lines
1.4 KiB
Dart
import 'package:eatvio_app/presentation/chat/chat_select_screen/chat_select_screen.dart';
|
|
import 'package:eatvio_app/presentation/diary/diary_edit_screen/diary_edit_screen.dart';
|
|
import 'package:eatvio_app/presentation/feed/feed_screen/feed_screen.dart';
|
|
import 'package:eatvio_app/presentation/profile/my_profile_screen/my_profile_screen.dart';
|
|
import 'package:eatvio_app/widgets/custom_bottom_bar.dart';
|
|
import 'package:go_router/go_router.dart';
|
|
|
|
class AppRouter {
|
|
static GoRouter appRouter = GoRouter(
|
|
initialLocation: '/my-profile-screen',
|
|
routes: [
|
|
ShellRoute(
|
|
builder: (context, state, child) {
|
|
return BottomNavigationBarWidget(child: child);
|
|
},
|
|
routes: [
|
|
GoRoute(
|
|
path: '/my-profile-screen',
|
|
name: 'myProfileScreen',
|
|
builder: (context, state) => MyProfileScreen(),
|
|
),
|
|
GoRoute(
|
|
path: '/feed-screen',
|
|
name: 'feedScreen',
|
|
builder: (context, state) => FeedScreen(),
|
|
),
|
|
GoRoute(
|
|
path: '/diary-screen',
|
|
name: 'diaryScreen',
|
|
builder: (context, state) => DiaryEditScreen(),
|
|
),
|
|
GoRoute(
|
|
path: '/chat-select-screen',
|
|
name: 'chatSelectScreen',
|
|
builder: (context, state) => ChatSelectScreen(),
|
|
),
|
|
],
|
|
),
|
|
],
|
|
);
|
|
}
|