mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-21 05:29:29 +02:00
Slight UI changes on Add App page
This commit is contained in:
@@ -198,13 +198,19 @@ class _AddAppPageState extends State<AddAppPage> {
|
|||||||
child: const Text('Add'))
|
child: const Text('Add'))
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
if (sourceProvider.sources
|
||||||
|
.where((e) => e.canSearch)
|
||||||
|
.isNotEmpty &&
|
||||||
|
pickedSource == null &&
|
||||||
|
userInput.isEmpty)
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 16,
|
height: 16,
|
||||||
),
|
),
|
||||||
if (sourceProvider.sources
|
if (sourceProvider.sources
|
||||||
.where((e) => e.canSearch)
|
.where((e) => e.canSearch)
|
||||||
.isNotEmpty &&
|
.isNotEmpty &&
|
||||||
pickedSource == null)
|
pickedSource == null &&
|
||||||
|
userInput.isEmpty)
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
@@ -321,6 +327,12 @@ class _AddAppPageState extends State<AddAppPage> {
|
|||||||
},
|
},
|
||||||
defaultValues: pickedSource!
|
defaultValues: pickedSource!
|
||||||
.additionalSourceAppSpecificDefaults),
|
.additionalSourceAppSpecificDefaults),
|
||||||
|
if (pickedSource!
|
||||||
|
.additionalAppSpecificSourceAgnosticDefaults
|
||||||
|
.isNotEmpty)
|
||||||
|
const SizedBox(
|
||||||
|
height: 8,
|
||||||
|
),
|
||||||
GeneratedForm(
|
GeneratedForm(
|
||||||
items: pickedSource!
|
items: pickedSource!
|
||||||
.additionalAppSpecificSourceAgnosticFormItems
|
.additionalAppSpecificSourceAgnosticFormItems
|
||||||
@@ -342,12 +354,6 @@ class _AddAppPageState extends State<AddAppPage> {
|
|||||||
},
|
},
|
||||||
defaultValues: pickedSource!
|
defaultValues: pickedSource!
|
||||||
.additionalAppSpecificSourceAgnosticDefaults),
|
.additionalAppSpecificSourceAgnosticDefaults),
|
||||||
if (pickedSource!
|
|
||||||
.additionalAppSpecificSourceAgnosticDefaults
|
|
||||||
.isNotEmpty)
|
|
||||||
const SizedBox(
|
|
||||||
height: 8,
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
@@ -356,6 +362,9 @@ class _AddAppPageState extends State<AddAppPage> {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
|
const SizedBox(
|
||||||
|
height: 48,
|
||||||
|
),
|
||||||
const Text(
|
const Text(
|
||||||
'Supported Sources:',
|
'Supported Sources:',
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user