mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 01:01:56 +01:00
fix: Adjust scroll from clipping children form fields in AlertDialog
from showSourcesDialog
(#1782)
This commit is contained in:
parent
a99406f0a9
commit
bbeb836923
1 changed files with 60 additions and 61 deletions
|
@ -27,6 +27,7 @@ class SManageSources extends BaseViewModel {
|
||||||
return showDialog(
|
return showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) => AlertDialog(
|
builder: (context) => AlertDialog(
|
||||||
|
scrollable: true,
|
||||||
title: Row(
|
title: Row(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Expanded(
|
Expanded(
|
||||||
|
@ -39,75 +40,73 @@ class SManageSources extends BaseViewModel {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
content: SingleChildScrollView(
|
content: Column(
|
||||||
child: Column(
|
children: <Widget>[
|
||||||
children: <Widget>[
|
TextField(
|
||||||
TextField(
|
controller: _orgPatSourceController,
|
||||||
controller: _orgPatSourceController,
|
autocorrect: false,
|
||||||
autocorrect: false,
|
onChanged: (value) => notifyListeners(),
|
||||||
onChanged: (value) => notifyListeners(),
|
decoration: InputDecoration(
|
||||||
decoration: InputDecoration(
|
icon: Icon(
|
||||||
icon: Icon(
|
Icons.extension_outlined,
|
||||||
Icons.extension_outlined,
|
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||||
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
|
||||||
),
|
|
||||||
border: const OutlineInputBorder(),
|
|
||||||
labelText: t.settingsView.orgPatchesLabel,
|
|
||||||
hintText: patchesRepo.split('/')[0],
|
|
||||||
),
|
),
|
||||||
|
border: const OutlineInputBorder(),
|
||||||
|
labelText: t.settingsView.orgPatchesLabel,
|
||||||
|
hintText: patchesRepo.split('/')[0],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
),
|
||||||
// Patches repository's name
|
const SizedBox(height: 8),
|
||||||
TextField(
|
// Patches repository's name
|
||||||
controller: _patSourceController,
|
TextField(
|
||||||
autocorrect: false,
|
controller: _patSourceController,
|
||||||
onChanged: (value) => notifyListeners(),
|
autocorrect: false,
|
||||||
decoration: InputDecoration(
|
onChanged: (value) => notifyListeners(),
|
||||||
icon: const Icon(
|
decoration: InputDecoration(
|
||||||
Icons.extension_outlined,
|
icon: const Icon(
|
||||||
color: Colors.transparent,
|
Icons.extension_outlined,
|
||||||
),
|
color: Colors.transparent,
|
||||||
border: const OutlineInputBorder(),
|
|
||||||
labelText: t.settingsView.sourcesPatchesLabel,
|
|
||||||
hintText: patchesRepo.split('/')[1],
|
|
||||||
),
|
),
|
||||||
|
border: const OutlineInputBorder(),
|
||||||
|
labelText: t.settingsView.sourcesPatchesLabel,
|
||||||
|
hintText: patchesRepo.split('/')[1],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
),
|
||||||
// Integrations owner's name
|
const SizedBox(height: 8),
|
||||||
TextField(
|
// Integrations owner's name
|
||||||
controller: _orgIntSourceController,
|
TextField(
|
||||||
autocorrect: false,
|
controller: _orgIntSourceController,
|
||||||
onChanged: (value) => notifyListeners(),
|
autocorrect: false,
|
||||||
decoration: InputDecoration(
|
onChanged: (value) => notifyListeners(),
|
||||||
icon: Icon(
|
decoration: InputDecoration(
|
||||||
Icons.merge_outlined,
|
icon: Icon(
|
||||||
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
Icons.merge_outlined,
|
||||||
),
|
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||||
border: const OutlineInputBorder(),
|
|
||||||
labelText: t.settingsView.orgIntegrationsLabel,
|
|
||||||
hintText: integrationsRepo.split('/')[0],
|
|
||||||
),
|
),
|
||||||
|
border: const OutlineInputBorder(),
|
||||||
|
labelText: t.settingsView.orgIntegrationsLabel,
|
||||||
|
hintText: integrationsRepo.split('/')[0],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
),
|
||||||
// Integrations repository's name
|
const SizedBox(height: 8),
|
||||||
TextField(
|
// Integrations repository's name
|
||||||
controller: _intSourceController,
|
TextField(
|
||||||
autocorrect: false,
|
controller: _intSourceController,
|
||||||
onChanged: (value) => notifyListeners(),
|
autocorrect: false,
|
||||||
decoration: InputDecoration(
|
onChanged: (value) => notifyListeners(),
|
||||||
icon: const Icon(
|
decoration: InputDecoration(
|
||||||
Icons.merge_outlined,
|
icon: const Icon(
|
||||||
color: Colors.transparent,
|
Icons.merge_outlined,
|
||||||
),
|
color: Colors.transparent,
|
||||||
border: const OutlineInputBorder(),
|
|
||||||
labelText: t.settingsView.sourcesIntegrationsLabel,
|
|
||||||
hintText: integrationsRepo.split('/')[1],
|
|
||||||
),
|
),
|
||||||
|
border: const OutlineInputBorder(),
|
||||||
|
labelText: t.settingsView.sourcesIntegrationsLabel,
|
||||||
|
hintText: integrationsRepo.split('/')[1],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 20),
|
),
|
||||||
Text(t.settingsView.sourcesUpdateNote),
|
const SizedBox(height: 20),
|
||||||
],
|
Text(t.settingsView.sourcesUpdateNote),
|
||||||
),
|
],
|
||||||
),
|
),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
TextButton(
|
TextButton(
|
||||||
|
|
Loading…
Reference in a new issue