fix theme / add history
This commit is contained in:
+3
-3
@@ -14,10 +14,10 @@ class KoolTabApp extends StatelessWidget {
|
||||
routerConfig: appRouter,
|
||||
// theme: ThemeData(
|
||||
// useMaterial3: false,
|
||||
// colorSchemeSeed: Colors.redAccent,
|
||||
// brightness: Brightness.dark,
|
||||
// colorSchemeSeed: Colors.blueAccent,
|
||||
// brightness: Brightness.light,
|
||||
// ),
|
||||
theme: neoBrutalDarkTheme
|
||||
theme: darkTheme
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,16 +1,24 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
|
||||
import '../views/bar_screen_view.dart';
|
||||
import '../views/history_screen_view.dart';
|
||||
import '../views/product_form_view.dart';
|
||||
import '../views/product_list_view.dart';
|
||||
|
||||
final RouteObserver<PageRoute> routeObserver = RouteObserver<PageRoute>();
|
||||
|
||||
final appRouter = GoRouter(
|
||||
initialLocation: '/bar',
|
||||
observers: [
|
||||
routeObserver,
|
||||
],
|
||||
routes: [
|
||||
GoRoute(
|
||||
path: '/bar',
|
||||
builder: (context, state) => const BarScreenView(),
|
||||
),
|
||||
|
||||
GoRoute(
|
||||
path: '/products',
|
||||
builder: (context, state) => const ProductListView(),
|
||||
@@ -29,5 +37,9 @@ final appRouter = GoRouter(
|
||||
),
|
||||
],
|
||||
),
|
||||
GoRoute(
|
||||
path: '/history',
|
||||
builder: (context, state) => const HistoryScreenView(),
|
||||
),
|
||||
],
|
||||
);
|
||||
Reference in New Issue
Block a user