Questions tagged [riverpod-lint]

2 questions
3
votes
2 answers

What is the correct way of providing a GoRouter instance with riverpod?

I'm trying to provide an instance of GoRouter with riverpod. However, this results in the "The riverpod_generator package does not support ChangeNotifier values" warning to be displayed: My question is, what would be the correct way of achieving…
Alex Lomia
  • 6,705
  • 12
  • 53
  • 87
1
vote
1 answer

how do I fix riverpod_lint error message 'If a provider depends on providers which specify "dependencies"...'

set up create a new project add the dependencies visible under additional information add the files below foos.dart import 'package:riverpod_annotation/riverpod_annotation.dart'; part 'foos.g.dart'; @Riverpod(keepAlive: true) class Foos…