This repository has been archived on 2024-06-08. You can view files and clone it, but cannot push or open issues or pull requests.
SolarAgent/lib/router.dart
2024-03-24 01:22:01 +08:00

28 lines
732 B
Dart

import 'package:go_router/go_router.dart';
import 'package:solaragent/screens/account.dart';
import 'package:solaragent/screens/explore.dart';
import 'package:solaragent/screens/notifications.dart';
import 'package:solaragent/screens/publish/moment_editor.dart';
final router = GoRouter(
routes: [
GoRoute(
path: '/',
builder: (context, state) => const ExploreScreen(),
),
GoRoute(
path: '/notifications',
builder: (context, state) => const NotificationScreen(),
),
GoRoute(
path: '/account',
builder: (context, state) => const AccountScreen(),
),
GoRoute(
path: '/post/moments',
builder: (context, state) => const MomentEditorScreen(),
),
],
);