‘ancestorWidgetOfExactType’ isn’t defined for the class ‘BuildContext’
执行flutter run时报错
xxx/lib/src/animation_configuration.dart:xxx:xx: Error: The method 'ancestorWidgetOfExactType' isn't defined for the class 'BuildContext'.
xxx/lib/src/animation_limiter.dart:xxx:xx: Error: The method 'ancestorWidgetOfExactType' isn't defined for the class 'BuildContext'.
‘ancestorWidgetOfExactType’ isn’t defined for the class ‘BuildContext’执行flutter run时报错xxx/lib/src/animation_configuration.dart:xxx:xx: Error: The method 'ancestorWidgetOfExactType' isn't defined for the class 'BuildContext'.xxx/lib/src/animation_limiter