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.
This commit is contained in:
Aliaksei Tratseuski 2024-04-20 03:11:08 +04:00
parent d8ac8cdbef
commit 551305b55a

View file

@ -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...'));