Skip to content

The getter 'state' isn't defined for the class 'StateNotifierProvider' for newer Riverpod versions #1

Description

@iotanbo

First of all, thanks for the excellent tutorial! It works fine as is, but after updating to
flutter_riverpod: ^0.14.0+1 the following errors appear:

ERROR: lib/presentation/weather_search_page.dart:23:45: Error: The getter 'state' isn't defined for the class 'StateNotifierProvider<WeatherNotifier, dynamic>'

ERROR: lib/presentation/weather_search_page.dart:37:59: Error: The getter 'state' isn't defined for the class 'StateNotifierProvider<WeatherNotifier, dynamic>'

Because this is a tutorial follow by many, I believe it's important to check whether
it is a minor syntax change or something more profound.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions