From efcd54c89816fa3e3c21deba8804f19e47a09631 Mon Sep 17 00:00:00 2001 From: Schnitzel5 Date: Tue, 2 Sep 2025 14:35:53 +0200 Subject: [PATCH] fixed app fonts dialog --- .../appearance/appearance_screen.dart | 54 ++++++++----------- 1 file changed, 22 insertions(+), 32 deletions(-) diff --git a/lib/modules/more/settings/appearance/appearance_screen.dart b/lib/modules/more/settings/appearance/appearance_screen.dart index c9712e31..bc847635 100644 --- a/lib/modules/more/settings/appearance/appearance_screen.dart +++ b/lib/modules/more/settings/appearance/appearance_screen.dart @@ -269,43 +269,33 @@ class AppearanceScreen extends ConsumerWidget { ), ) .toList(); - return Flexible( + return Expanded( child: Scrollbar( interactive: true, thickness: 12, radius: const Radius.circular(10), controller: controller, - child: CustomScrollView( - controller: controller, - slivers: [ - SliverPadding( - padding: const EdgeInsets.all(0), - sliver: RadioGroup( - groupValue: appFontFamily, - onChanged: (value) { - ref - .read( - appFontFamilyProvider.notifier, - ) - .set(value); - Navigator.pop(context); - }, - child: SuperSliverList.builder( - itemCount: values.length, - itemBuilder: (context, index) { - final value = values[index]; - return RadioListTile( - dense: true, - contentPadding: - const EdgeInsets.all(0), - value: value.value().fontFamily, - title: Text(value.key), - ); - }, - ), - ), - ), - ], + child: RadioGroup( + groupValue: appFontFamily, + onChanged: (value) { + ref + .read(appFontFamilyProvider.notifier) + .set(value); + Navigator.pop(context); + }, + child: SuperListView.builder( + controller: controller, + itemCount: values.length, + itemBuilder: (context, index) { + final value = values[index]; + return RadioListTile( + dense: true, + contentPadding: const EdgeInsets.all(0), + value: value.value().fontFamily, + title: Text(value.key), + ); + }, + ), ), ), );