mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 09:07:47 +01: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
1 changed files with 45 additions and 43 deletions
|
@ -182,52 +182,54 @@ 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(
|
||||||
valueListenable: installType,
|
child: ValueListenableBuilder(
|
||||||
builder: (context, value, child) {
|
valueListenable: installType,
|
||||||
return Column(
|
builder: (context, value, child) {
|
||||||
mainAxisSize: MainAxisSize.min,
|
return Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
Padding(
|
children: [
|
||||||
padding: const EdgeInsets.symmetric(
|
Padding(
|
||||||
horizontal: 20,
|
padding: const EdgeInsets.symmetric(
|
||||||
vertical: 10,
|
horizontal: 20,
|
||||||
),
|
vertical: 10,
|
||||||
child: I18nText(
|
),
|
||||||
'installerView.installTypeDescription',
|
child: I18nText(
|
||||||
child: Text(
|
'installerView.installTypeDescription',
|
||||||
'',
|
child: Text(
|
||||||
style: TextStyle(
|
'',
|
||||||
fontSize: 16,
|
style: TextStyle(
|
||||||
fontWeight: FontWeight.w500,
|
fontSize: 16,
|
||||||
color: Theme.of(context).colorScheme.secondary,
|
fontWeight: FontWeight.w500,
|
||||||
|
color: Theme.of(context).colorScheme.secondary,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
RadioListTile(
|
||||||
RadioListTile(
|
title: I18nText('installerView.installNonRootType'),
|
||||||
title: I18nText('installerView.installNonRootType'),
|
subtitle: I18nText('installerView.installRecommendedType'),
|
||||||
subtitle: I18nText('installerView.installRecommendedType'),
|
contentPadding: const EdgeInsets.symmetric(horizontal: 16),
|
||||||
contentPadding: const EdgeInsets.symmetric(horizontal: 10),
|
value: 0,
|
||||||
value: 0,
|
groupValue: value,
|
||||||
groupValue: value,
|
onChanged: (selected) {
|
||||||
onChanged: (selected) {
|
installType.value = selected!;
|
||||||
installType.value = selected!;
|
},
|
||||||
},
|
),
|
||||||
),
|
RadioListTile(
|
||||||
RadioListTile(
|
title: I18nText('installerView.installRootType'),
|
||||||
title: I18nText('installerView.installRootType'),
|
contentPadding: const EdgeInsets.symmetric(horizontal: 16),
|
||||||
contentPadding: const EdgeInsets.symmetric(horizontal: 10),
|
value: 1,
|
||||||
value: 1,
|
groupValue: value,
|
||||||
groupValue: value,
|
onChanged: (selected) {
|
||||||
onChanged: (selected) {
|
installType.value = selected!;
|
||||||
installType.value = selected!;
|
},
|
||||||
},
|
),
|
||||||
),
|
],
|
||||||
],
|
);
|
||||||
);
|
},
|
||||||
},
|
),
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
CustomMaterialButton(
|
CustomMaterialButton(
|
||||||
|
|
Loading…
Reference in a new issue