fix: the horizontal scrollbar disappearing in grid view (#3751)

This commit is contained in:
Shreesh Nautiyal 2023-10-23 08:00:47 +05:30 committed by GitHub
parent 7e101b8bf1
commit 8e5b6b6e27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -389,6 +389,7 @@ class _WrapScrollView extends StatelessWidget {
barSize: GridSize.scrollBarSize,
autoHideScrollbar: false,
child: StyledSingleChildScrollView(
autoHideScrollbar: false,
controller: scrollController.horizontalController,
axis: Axis.horizontal,
child: SizedBox(

View File

@ -11,6 +11,7 @@ class StyledSingleChildScrollView extends StatefulWidget {
final ScrollController? controller;
final EdgeInsets? scrollbarPadding;
final double barSize;
final bool autoHideScrollbar;
final Widget? child;
@ -24,6 +25,7 @@ class StyledSingleChildScrollView extends StatefulWidget {
this.controller,
this.scrollbarPadding,
this.barSize = 8,
this.autoHideScrollbar = true,
}) : super(key: key);
@override
@ -58,6 +60,7 @@ class StyledSingleChildScrollViewState
@override
Widget build(BuildContext context) {
return ScrollbarListStack(
autoHideScrollbar: widget.autoHideScrollbar,
contentSize: widget.contentSize,
axis: widget.axis,
controller: scrollController,