Skip to content
Snippets Groups Projects
Commit 2d6883db authored by vjrj's avatar vjrj
Browse files

Add telegram group links

parent 3a0870f6
No related branches found
No related tags found
No related merge requests found
...@@ -185,5 +185,6 @@ ...@@ -185,5 +185,6 @@
"retry_payment": "Retry Payment", "retry_payment": "Retry Payment",
"cancel_payment": "Cancel Payment", "cancel_payment": "Cancel Payment",
"payment_canceled": "Payment canceled although we cannot ensure that it has not already been executed", "payment_canceled": "Payment canceled although we cannot ensure that it has not already been executed",
"pay_again": "Pay Again" "pay_again": "Pay Again",
"telegram_group": "Telegram Group"
} }
...@@ -187,5 +187,6 @@ ...@@ -187,5 +187,6 @@
"cancel_payment": "Cancelar pago", "cancel_payment": "Cancelar pago",
"payment_canceled": "Pago cancelado aunque no podemos asegurar que no se haya hecho ejecutado ya", "payment_canceled": "Pago cancelado aunque no podemos asegurar que no se haya hecho ejecutado ya",
"transaction_failed": "Pago fallido", "transaction_failed": "Pago fallido",
"pay_again": "Paga de nuevo" "pay_again": "Paga de nuevo",
"telegram_group": "Grupo de Telegram"
} }
...@@ -5,6 +5,7 @@ import 'package:flutter/material.dart'; ...@@ -5,6 +5,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart'; import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:package_info_plus/package_info_plus.dart'; import 'package:package_info_plus/package_info_plus.dart';
import 'package:sentry_flutter/sentry_flutter.dart'; import 'package:sentry_flutter/sentry_flutter.dart';
import 'package:url_launcher/url_launcher.dart';
import '../../data/models/cesium_card.dart'; import '../../data/models/cesium_card.dart';
import '../../shared_prefs.dart'; import '../../shared_prefs.dart';
...@@ -100,6 +101,21 @@ class CardDrawer extends StatelessWidget { ...@@ -100,6 +101,21 @@ class CardDrawer extends StatelessWidget {
); );
}, },
), ),
ListTile(
leading: const Icon(Icons.telegram_outlined),
title: Text(tr('telegram_group')),
onTap: () async {
if (context.locale == const Locale('es') ||
context.locale == const Locale('ca') ||
context.locale == const Locale('gl') ||
context.locale == const Locale('eu') ||
context.locale == const Locale('ast')) {
await launchUrl(Uri.parse('https://t.me/g1nkgoES'));
} else {
await launchUrl(Uri.parse('https://t.me/g1nkgoEN'));
}
},
),
ListTile( ListTile(
leading: const Icon(Icons.feedback), leading: const Icon(Icons.feedback),
title: Text(tr('feedback')), title: Text(tr('feedback')),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment