Skip to content

Commit

Permalink
fix: Hide scroll bars when using ExtendedNestedScrollView.
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelongqy committed May 6, 2024
1 parent d905e5a commit 0abacb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/behavior/scroll_behavior.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ class ERScrollBehavior extends ScrollBehavior {
case TargetPlatform.macOS:
case TargetPlatform.windows:
assert(details.controller != null);
if (details.controller!.positions.length > 1 ||
details.controller!.debugLabel == 'inner') {
return child;
}
return Scrollbar(
controller: details.controller,
child: child,
Expand Down

0 comments on commit 0abacb6

Please sign in to comment.