update routes; small polishments

This commit is contained in:
Fabian Freund
2024-06-16 06:35:05 +02:00
parent 04e8dc7c0e
commit 2007fd2809
7 changed files with 119 additions and 29 deletions
@@ -138,7 +138,7 @@ class KagiScreen extends HookConsumerWidget {
const Divider(),
MenuItemButton(
onPressed: () async {
await context.push(BangRoute().location);
await context.push(BangCategoriesRoute().location);
},
leadingIcon: const Icon(MdiIcons.exclamationThick),
child: const Text('Bangs'),
@@ -37,7 +37,7 @@ class AppBarTitle extends HookConsumerWidget {
Widget build(BuildContext context, WidgetRef ref) {
final activeWebView = ref.watch(webViewTabControllerProvider);
if (activeWebView == null) {
return SizedBox.shrink();
return const SizedBox.shrink();
}
final page = useValueListenable(activeWebView.page);
@@ -18,7 +18,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart';
class _InputField extends ConsumerWidget {
final TextEditingController? controller;
const _InputField({required this.controller, super.key});
const _InputField({required this.controller});
@override
Widget build(BuildContext context, WidgetRef ref) {