diff --git a/lib/src/services/firebase/firebase_config.dart b/lib/src/services/firebase/firebase_config.dart index 61b0142..55b869f 100644 --- a/lib/src/services/firebase/firebase_config.dart +++ b/lib/src/services/firebase/firebase_config.dart @@ -143,6 +143,7 @@ class FirebaseConfig { "enable_firebase": false, "app_store_url": "https://apps.apple.com/app/engelsburg-planer/id6469040581", "play_store_url": "https://play.google.com/store/apps/details?id=de.paulhuerkamp.engelsburg_planer", + "instagram": "https://www.instagram.com/engelsburg.planer/", "support_email": "engelsburg.planer@gmail.com", }); } diff --git a/lib/src/view/pages/util/about_page.dart b/lib/src/view/pages/util/about_page.dart index 3d5aa10..eeb7e90 100644 --- a/lib/src/view/pages/util/about_page.dart +++ b/lib/src/view/pages/util/about_page.dart @@ -10,6 +10,7 @@ import 'package:engelsburg_planer/src/view/routing/templates/page_base.dart'; import 'package:engelsburg_planer/src/view/widgets/app_icon.dart'; import 'package:firebase_remote_config/firebase_remote_config.dart'; import 'package:flutter/material.dart'; +import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import 'package:package_info_plus/package_info_plus.dart'; import 'package:url_launcher/url_launcher.dart' as url_launcher; @@ -23,6 +24,7 @@ class AboutPage extends PageBase { builder: (context, snapshot) { final packageInfo = snapshot.data; var supportEmail = FirebaseRemoteConfig.instance.getString("support_email"); + var instagram = FirebaseRemoteConfig.instance.getString("instagram"); String storeUrl = ""; if (Platform.isIOS) { @@ -56,6 +58,14 @@ class AboutPage extends PageBase { Uri.parse(storeUrl), ), ), + if (instagram.isNotEmpty) + ListTile( + leading: const Icon(FontAwesomeIcons.instagram), + title: const Text("Instagram"), + onTap: () => url_launcher.launchUrl( + Uri.parse(instagram), + ), + ), ListTile( leading: const Icon(Icons.mail), title: Text(context.l10n.sendAnEmail), diff --git a/pubspec.yaml b/pubspec.yaml index 2f639cd..79d0df9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -73,6 +73,7 @@ dependencies: introduction_screen: ^3.1.7 crypto: ^3.0.2 convert: ^3.1.1 + font_awesome_flutter: ^10.7.0 # Util html_unescape: ^2.0.0