mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-05-02 06:44:25 +02:00
fix(install-type): update padding and enable radio list scrolling (#1287)
fix(install-type): update padding and enable radio list scrolling
This commit is contained in:
commit
e75d3c8273
@ -182,7 +182,8 @@ class InstallerViewModel extends BaseViewModel {
|
|||||||
backgroundColor: Theme.of(context).colorScheme.secondaryContainer,
|
backgroundColor: Theme.of(context).colorScheme.secondaryContainer,
|
||||||
icon: const Icon(Icons.file_download_outlined),
|
icon: const Icon(Icons.file_download_outlined),
|
||||||
contentPadding: const EdgeInsets.symmetric(vertical: 16),
|
contentPadding: const EdgeInsets.symmetric(vertical: 16),
|
||||||
content: ValueListenableBuilder(
|
content: SingleChildScrollView(
|
||||||
|
child: ValueListenableBuilder(
|
||||||
valueListenable: installType,
|
valueListenable: installType,
|
||||||
builder: (context, value, child) {
|
builder: (context, value, child) {
|
||||||
return Column(
|
return Column(
|
||||||
@ -209,7 +210,7 @@ class InstallerViewModel extends BaseViewModel {
|
|||||||
RadioListTile(
|
RadioListTile(
|
||||||
title: I18nText('installerView.installNonRootType'),
|
title: I18nText('installerView.installNonRootType'),
|
||||||
subtitle: I18nText('installerView.installRecommendedType'),
|
subtitle: I18nText('installerView.installRecommendedType'),
|
||||||
contentPadding: const EdgeInsets.symmetric(horizontal: 10),
|
contentPadding: const EdgeInsets.symmetric(horizontal: 16),
|
||||||
value: 0,
|
value: 0,
|
||||||
groupValue: value,
|
groupValue: value,
|
||||||
onChanged: (selected) {
|
onChanged: (selected) {
|
||||||
@ -218,7 +219,7 @@ class InstallerViewModel extends BaseViewModel {
|
|||||||
),
|
),
|
||||||
RadioListTile(
|
RadioListTile(
|
||||||
title: I18nText('installerView.installRootType'),
|
title: I18nText('installerView.installRootType'),
|
||||||
contentPadding: const EdgeInsets.symmetric(horizontal: 10),
|
contentPadding: const EdgeInsets.symmetric(horizontal: 16),
|
||||||
value: 1,
|
value: 1,
|
||||||
groupValue: value,
|
groupValue: value,
|
||||||
onChanged: (selected) {
|
onChanged: (selected) {
|
||||||
@ -229,6 +230,7 @@ class InstallerViewModel extends BaseViewModel {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
),
|
||||||
actions: [
|
actions: [
|
||||||
CustomMaterialButton(
|
CustomMaterialButton(
|
||||||
label: I18nText('cancelButton'),
|
label: I18nText('cancelButton'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user