From 036f2ec35e0dcd080e945409d527c1f6039dfa8a Mon Sep 17 00:00:00 2001 From: Koji Wakamiya Date: Sun, 18 Feb 2024 20:02:45 +0900 Subject: [PATCH] feat: Set optionURLReflectsImperativeAPIs --- lib/main.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/main.dart b/lib/main.dart index 4e407fd..760ed91 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -4,6 +4,7 @@ import 'package:flutter_kokkai_gijiroku/app.dart'; import 'package:flutter_kokkai_gijiroku/model/entity/search_params.dart'; import 'package:flutter_kokkai_gijiroku/model/hive/search_history.dart'; import 'package:flutter_kokkai_gijiroku/ofl.dart'; +import 'package:go_router/go_router.dart'; import 'package:hive_flutter/hive_flutter.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:http_hive_cache/http_hive_cache.dart'; @@ -13,6 +14,8 @@ void main() async { yield const LicenseEntryWithLineBreaks(['google_fonts'], bizUDGothic); }); + GoRouter.optionURLReflectsImperativeAPIs = true; + await Hive.initFlutter(); await HttpHiveCache.init();