diff --git a/lib/constants/urls.dart b/lib/constants/urls.dart index 82c74dc..3a4527b 100644 --- a/lib/constants/urls.dart +++ b/lib/constants/urls.dart @@ -2,4 +2,5 @@ class Urls { static const linkdingInstallationInstructions = "https://github.com/sissbruecker/linkding?tab=readme-ov-file#installation"; static const gitHubRepo = "https://github.com/JGeek00/linkdy"; + static const playStoreLink = "https://play.google.com/store/apps/details?id=com.jgeek00.linkdy&pcampaignid=web_share"; } diff --git a/lib/screens/settings/ui/settings.dart b/lib/screens/settings/ui/settings.dart index 2a92811..e5554ba 100644 --- a/lib/screens/settings/ui/settings.dart +++ b/lib/screens/settings/ui/settings.dart @@ -1,3 +1,5 @@ +import 'dart:io'; + import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_svg/flutter_svg.dart'; @@ -51,17 +53,17 @@ class SettingsScreen extends ConsumerWidget { child: Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ - // if (Platform.isAndroid) - // IconButton( - // onPressed: () => openUrl(Urls.playStore), - // icon: SvgPicture.asset( - // 'assets/resources/google-play.svg', - // color: Theme.of(context).colorScheme.onSurfaceVariant, - // width: 30, - // height: 30, - // ), - // tooltip: t.settings.visitGooglePlay, - // ), + if (Platform.isAndroid) + IconButton( + onPressed: () => openUrl(Urls.playStoreLink), + icon: SvgPicture.asset( + 'assets/resources/google-play.svg', + color: Theme.of(context).colorScheme.onSurfaceVariant, + width: 30, + height: 30, + ), + tooltip: t.settings.visitGooglePlay, + ), IconButton( onPressed: () => openUrl(Urls.gitHubRepo), icon: SvgPicture.asset(