add alot
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:kooltab2/views/settings_view.dart';
|
||||
|
||||
import '../viewmodels/pin_lock_view_model.dart';
|
||||
import '../views/bar_screen_view.dart';
|
||||
@@ -31,6 +32,10 @@ GoRouter createAppRouter(PinLockViewModel pinLockViewModel) {
|
||||
return null;
|
||||
},
|
||||
routes: [
|
||||
GoRoute(
|
||||
path: '/',
|
||||
redirect: (context, state) => '/bar'
|
||||
),
|
||||
GoRoute(
|
||||
path: '/lock',
|
||||
builder: (context, state) => PinEntryView(
|
||||
@@ -67,6 +72,11 @@ GoRouter createAppRouter(PinLockViewModel pinLockViewModel) {
|
||||
path: '/history',
|
||||
builder: (context, state) => const HistoryScreenView(),
|
||||
),
|
||||
|
||||
GoRoute(
|
||||
path: '/settings',
|
||||
builder: (context, state) => const SettingsScreenView(),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user