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(
padding: const EdgeInsets.all(16),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
GestureDetector(
onTap: () {
@ -600,7 +601,20 @@ class AddAppPageState extends State<AddAppPage> {
fontWeight: FontWeight.bold,
decoration: TextDecoration.underline,
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,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
ElevatedButton(onPressed:
doingSomething ? null :
(){
launchUrlString('https://apps.obtainium.imranr.dev/',
mode: LaunchMode.externalApplication);
}, child: Text(tr('communityAppSources'))),
getUrlInputRow(),
const SizedBox(
height: 16,