Added routes
This commit is contained in:
parent
5060cee30d
commit
2d7ce03c22
1 changed files with 7 additions and 1 deletions
|
|
@ -1,6 +1,8 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:ocbo_esign_validator/pages/approval_page.dart';
|
||||
import 'package:ocbo_esign_validator/pages/index_page.dart';
|
||||
import 'package:ocbo_esign_validator/pages/validate_page.dart';
|
||||
|
||||
void main() {
|
||||
runApp(const MyApp());
|
||||
|
|
@ -8,7 +10,11 @@ void main() {
|
|||
|
||||
final _router = GoRouter(
|
||||
initialLocation: '/',
|
||||
routes: [GoRoute(name: 'index', path: '/', builder: (context, state) => const IndexPage())],
|
||||
routes: [
|
||||
GoRoute(name: 'index', path: '/', builder: (context, state) => const IndexPage()),
|
||||
GoRoute(name: 'approval', path: '/approval', builder: (context, state) => const ApprovalPage()),
|
||||
GoRoute(name: 'validate', path: '/validate', builder: (context, state) => const ValidatePage()),
|
||||
],
|
||||
);
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue