flutter_sliver_fill_remaining_box_adapter icon indicating copy to clipboard operation
flutter_sliver_fill_remaining_box_adapter copied to clipboard

Deprecated method causes failed build in flutter sdk >2.0.0

Open DriftingShadows opened this issue 3 years ago • 1 comments

This error appears when running on a simulator:

../../../../flutter/.pub-cache/hosted/pub.dartlang.org/sliver_fill_remaining_box_adapter-0.1.1/lib/sliver_fill_remaining_box_adapter.dar t:16:30: Error: The method 'ancestorStateOfType' isn't defined for the class 'BuildContext'. - 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../../../flutter/packages/flutter/lib/src/widgets/framework.dart'). Try correcting the name to the name of an existing method, or defining a method named 'ancestorStateOfType'. var scrollable = context.ancestorStateOfType(TypeMatcher<ScrollableState>()) as ScrollableState;

DriftingShadows avatar Apr 14 '21 12:04 DriftingShadows

@DriftingShadows hi! facing the same problem here. did you find any good alternative? thx!

dhiyaaulauliyaa avatar Jun 07 '21 13:06 dhiyaaulauliyaa