mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-05-07 21:00:46 +00:00
fixed app fonts dialog
This commit is contained in:
parent
477beeb360
commit
efcd54c898
1 changed files with 22 additions and 32 deletions
|
|
@ -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<String?>(
|
||||
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<String?>(
|
||||
dense: true,
|
||||
contentPadding: const EdgeInsets.all(0),
|
||||
value: value.value().fontFamily,
|
||||
title: Text(value.key),
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue