Added google play link

This commit is contained in:
Juan Gilsanz Polo
2024-02-25 19:48:00 +01:00
parent e0042007c3
commit c5da746fc3
2 changed files with 14 additions and 11 deletions

View File

@@ -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";
}

View File

@@ -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(