From 551305b55a9817fb362cc0c165dce60f78f97b09 Mon Sep 17 00:00:00 2001 From: Aliaksei Tratseuski Date: Sat, 20 Apr 2024 03:11:08 +0400 Subject: [PATCH] fix: disable automatic scrollbar addition for desktop builds. If view needs a scrollbar, it should be added on all platforms. Framework, by default, adds them only on desktop, so if we add scrollbars in some places (our main builds are still smartphones), on desktop we will get double scrollbars. --- lib/main.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/main.dart b/lib/main.dart index 13b05aad..d11ecd6b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -91,6 +91,9 @@ class SelfprivacyApp extends StatelessWidget { : appSettings.isDarkModeOn ? ThemeMode.dark : ThemeMode.light, + scrollBehavior: const MaterialScrollBehavior().copyWith( + scrollbars: false, + ), builder: (final BuildContext context, final Widget? widget) { Widget error = const Center(child: Text('...rendering error...'));