mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix _scrollOffsetIsInBounds analayzer warning
This commit is contained in:
parent
42f48b0f0e
commit
02152f65fb
@ -128,7 +128,7 @@ abstract class ScrollableState<T extends Scrollable> extends State<T> {
|
||||
bool _scrollOffsetIsInBounds(double offset) {
|
||||
if (scrollBehavior is! ExtentScrollBehavior)
|
||||
return false;
|
||||
ExtentScrollBehavior behavior = scrollBehavior as ExtentScrollBehavior;
|
||||
ExtentScrollBehavior behavior = scrollBehavior;
|
||||
return offset >= behavior.minScrollOffset && offset < behavior.maxScrollOffset;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user