🐦

riverpod_lintが反応しない時

に公開

概要

Flutterのパッケージであるriverpod_lintをプロジェクトに追加したが、riverpodのコードアクションが選択できない時。

https://pub.dev/packages/riverpod_lint

riverpod_lintの追加

flutter pub add riverpod_lint
flutter pub add custom_lint

方法

プロジェクト内のanalysis_options.yamlに以下を追加。
プラグインを有効にする必要がある。

analyzer:
 plugins:
  - custom_lint

Discussion