mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-10-26 19:23:45 +01:00
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:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user