Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

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

Shreesh Nautiyal8e5b6b6e2720
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/grid_page.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/grid_page.dart
index 09da116783..defba2c6bf 100755
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/grid_page.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/grid_page.dart
@@ -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(
diff --git a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/scrolling/styled_scrollview.dart b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/scrolling/styled_scrollview.dart
index 82f5c2edfd..1b10d7335d 100644
--- a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/scrolling/styled_scrollview.dart
+++ b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/scrolling/styled_scrollview.dart
@@ -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,