私はフラッターチュートリアルに従っていますが、それは古いものなので、dart といくつかのライブラリの変更に従って変更を加える必要がありましたが、このエラーが発生し、チュートリアルの人にはそのようなエラーは発生しません。PS:「StoriesProviderが定義されている」唯一の場所です
class StoriesProvider extends InheritedWidget { //Missing concrete implementation of InheritedWidget.updateShouldNotify here
final StoriesBloc bloc;
StoriesProvider({Key key, Widget child})
: bloc = StoriesBloc(),
super(key: key, child: child);
bool updateSouldNotify(_) => true;
static StoriesBloc of(BuildContext context) {
return (context.dependOnInheritedWidgetOfExactType<StoriesProvider>(
))
.bloc;
}
}