Replace the "Community App Sources" button with a text link in the AddAppPage for a cleaner UI.

improving interface consistency.
This commit is contained in:
Eren GUN
2024-10-03 10:59:44 +03:00
parent f5b540dd8b
commit 74b9de3516

View File

@@ -544,6 +544,7 @@ class AddAppPageState extends State<AddAppPage> {
Widget getSourcesListWidget() => Padding( Widget getSourcesListWidget() => Padding(
padding: const EdgeInsets.all(16), padding: const EdgeInsets.all(16),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
GestureDetector( GestureDetector(
onTap: () { onTap: () {
@@ -600,7 +601,20 @@ class AddAppPageState extends State<AddAppPage> {
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
decoration: TextDecoration.underline, decoration: TextDecoration.underline,
fontStyle: FontStyle.italic), fontStyle: FontStyle.italic),
)) )),
GestureDetector(
onTap: () {
launchUrlString('https://apps.obtainium.imranr.dev/',
mode: LaunchMode.externalApplication);
},
child: Text(
tr('crowdsourcedConfigsShort'),
style: const TextStyle(
fontWeight: FontWeight.bold,
decoration: TextDecoration.underline,
fontStyle: FontStyle.italic),
),
),
], ],
), ),
); );
@@ -618,12 +632,6 @@ class AddAppPageState extends State<AddAppPage> {
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.stretch, crossAxisAlignment: CrossAxisAlignment.stretch,
children: [ children: [
ElevatedButton(onPressed:
doingSomething ? null :
(){
launchUrlString('https://apps.obtainium.imranr.dev/',
mode: LaunchMode.externalApplication);
}, child: Text(tr('communityAppSources'))),
getUrlInputRow(), getUrlInputRow(),
const SizedBox( const SizedBox(
height: 16, height: 16,