From 6bf1d9c19a3772c244f14c9aee3c021a72b9ad40 Mon Sep 17 00:00:00 2001 From: appflowy Date: Sun, 5 Jun 2022 22:28:15 +0800 Subject: [PATCH 1/2] chore: fix grid scollbar not visible after screen size changed --- .../app_flowy/lib/workspace/presentation/home/home_screen.dart | 2 -- .../app_flowy/lib/workspace/presentation/home/home_stack.dart | 2 -- 2 files changed, 4 deletions(-) diff --git a/frontend/app_flowy/lib/workspace/presentation/home/home_screen.dart b/frontend/app_flowy/lib/workspace/presentation/home/home_screen.dart index 86fa9fab79..7e6d4abba2 100644 --- a/frontend/app_flowy/lib/workspace/presentation/home/home_screen.dart +++ b/frontend/app_flowy/lib/workspace/presentation/home/home_screen.dart @@ -18,7 +18,6 @@ import 'home_stack.dart'; import 'menu/menu.dart'; class HomeScreen extends StatefulWidget { - static GlobalKey scaffoldKey = GlobalKey(); final UserProfile user; final CurrentWorkspaceSetting workspaceSetting; const HomeScreen(this.user, this.workspaceSetting, {Key? key}) : super(key: key); @@ -52,7 +51,6 @@ class _HomeScreenState extends State { ), ], child: Scaffold( - key: HomeScreen.scaffoldKey, body: BlocListener( listenWhen: (p, c) => p.unauthorized != c.unauthorized, listener: (context, state) { diff --git a/frontend/app_flowy/lib/workspace/presentation/home/home_stack.dart b/frontend/app_flowy/lib/workspace/presentation/home/home_stack.dart index c9c210ab35..07bd99deb1 100644 --- a/frontend/app_flowy/lib/workspace/presentation/home/home_stack.dart +++ b/frontend/app_flowy/lib/workspace/presentation/home/home_stack.dart @@ -21,8 +21,6 @@ import 'package:flowy_infra/notifier.dart'; typedef NavigationCallback = void Function(String id); class HomeStack extends StatelessWidget { - static GlobalKey scaffoldKey = GlobalKey(); - // final Size size; const HomeStack({Key? key}) : super(key: key); @override From ad5ab10cdd7ce92b139e6e3d147526bf67a98c5e Mon Sep 17 00:00:00 2001 From: appflowy Date: Sun, 5 Jun 2022 22:29:09 +0800 Subject: [PATCH 2/2] chore: update default scrollbar size --- .../lib/style_widget/scrolling/styled_scrollview.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app_flowy/packages/flowy_infra_ui/lib/style_widget/scrolling/styled_scrollview.dart b/frontend/app_flowy/packages/flowy_infra_ui/lib/style_widget/scrolling/styled_scrollview.dart index da316685dd..bf086f756e 100644 --- a/frontend/app_flowy/packages/flowy_infra_ui/lib/style_widget/scrolling/styled_scrollview.dart +++ b/frontend/app_flowy/packages/flowy_infra_ui/lib/style_widget/scrolling/styled_scrollview.dart @@ -23,7 +23,7 @@ class StyledSingleChildScrollView extends StatefulWidget { this.handleColor, this.controller, this.scrollbarPadding, - this.barSize = 6, + this.barSize = 12, }) : super(key: key); @override