minor
This commit is contained in:
parent
deb9f4af87
commit
95c279088a
1 changed files with 2 additions and 0 deletions
|
@ -223,12 +223,14 @@ class _MenuQuickChooserState<T> extends State<MenuQuickChooser<T>> {
|
|||
bool get canGoUp {
|
||||
if (!_scrollController.hasClients) return false;
|
||||
final position = _scrollController.position;
|
||||
if (!position.hasContentDimensions) return false;
|
||||
return reversed ? position.pixels < position.maxScrollExtent : 0 < position.pixels;
|
||||
}
|
||||
|
||||
bool get canGoDown {
|
||||
if (!_scrollController.hasClients) return false;
|
||||
final position = _scrollController.position;
|
||||
if (!position.hasContentDimensions) return false;
|
||||
return reversed ? 0 < position.pixels : position.pixels < position.maxScrollExtent;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue