GIfatahTH / animator

A Flutter library that makes animation easer. It allows for separation of animation setup from the User Interface.
BSD 3-Clause "New" or "Revised" License
227 stars 28 forks source link

Compiler Message error #25

Closed lunwhl closed 4 years ago

lunwhl commented 4 years ago

I get the error below when I import the package in my dart page.

file:///Users//development/flutter/.pub-cache/hosted/pub.dartlang.org/states_rebuilder-1.11.1/lib/src/reactive_model.dart:411:17: Error: The method 'dependOnInheritedWidgetOfExactType' isn't defined for the class 'BuildContext'.

  • 'BuildContext' is from 'package:flutter/src/widgets/framework.dart'
    ('file:///Users//development/flutter/packages/flutter/lib/src/widgets/framework.dart'). Try correcting the name to the name of an existing method, or defining a method named 'dependOnInheritedWidgetOfExactType'. context.dependOnInheritedWidgetOfExactType<InheritedInject>();
GIfatahTH commented 4 years ago

Update your flutter sdk