mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: the horizontal scrollbar disappearing in grid view (#3751)
This commit is contained in:
parent
7e101b8bf1
commit
8e5b6b6e27
@ -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(
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user