I am having problems finding where should I import: StateNotifierProvider from. It doesn't exist in package:provider/provider.dart, it does however resolve to: package:hooks_riverpod/hooks_riverpod.dart, but even then IDE complains:
The element type 'StateNotifierProvider<MyClass, MyState>' can't be assigned to the list type 'SingleChildWidget'.
In the documentation: https://pub.dev/packages/state_notifier#integration-with-providerservice-locators there is an example how to use this package with e.g. https://pub.dev/packages/provider package.
I am having problems finding where should I import:
StateNotifierProvider
from. It doesn't exist inpackage:provider/provider.dart
, it does however resolve to:package:hooks_riverpod/hooks_riverpod.dart
, but even then IDE complains: