0
0

flutter_hooks利用時にSearchControllerエラー

Last updated at Posted at 2023-09-06

flutter_hooksをインストールしてビルドしようとしたら、以下のようなSearchControllerエラーが大量に出た。

Running Gradle task 'assembleDebug'...
../../../.pub-cache/hosted/pub.dev/flutter_hooks-0.20.0/lib/src/search_controller.dart:7:1: Error: Type 'SearchController' not found.
SearchController useSearchController({List<Object?>? keys}) {
^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception

解決方法

../../../.pub-cache/hosted/pub.dev/flutter_hooks-0.20.3/lib/src/hooks.dartの該当部分をとりあえずコメントアウトしたらビルド成功しました。

// part 'search_controller.dart';
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0