Open SheepYang1993 opened 1 month ago
Generally, it's just the IDE that's out of date. You're most likely facing https://github.com/dart-lang/sdk/issues/54113.
Does the warning disappear if you restart the IDE or open the generated file?
Generally, it's just the IDE that's out of date. You're most likely facing dart-lang/sdk#54113.
Does the warning disappear if you restart the IDE or open the generated file?
Restart the IDE or reopen the generated file, lint will not disappear.
When I added a parameter and run build_runner build
, Lint disappeared.
@riverpod
Future<void> refreshVipTypeList(
RefreshVipTypeListRef ref, {
bool showLoading = false,
})
My Flutter version is 3.19.3 flutter_riverpod: 2.5.1 riverpod_annotation: 2.3.5 riverpod_generator: 2.4.0 riverpod_lint: 2.3.10
I haven't tried the method of upgrading IDE and Flutter yet, but I will try it out in the future.
Describe the bug
vipTypeListInfoProvider.notifier
will show lintavoid_manual_providers_as_generated_provider_dependency
To Reproduce This is my code
Expected behavior I'm not sure if it's a code issue or a Lint error