flutter_sliver_fill_remaining_box_adapter
flutter_sliver_fill_remaining_box_adapter copied to clipboard
Deprecated method causes failed build in flutter sdk >2.0.0
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 hi! facing the same problem here. did you find any good alternative? thx!