forked from eatvio/eatvio_app
feat(support): task 397 email copy
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import 'package:eatvio_app/core/utils/toasts.dart';
|
||||
import 'package:eatvio_app/generated/l10n.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
@@ -7,6 +10,8 @@ class SupportScreen extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final s = S.of(context);
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('Поддержка'),
|
||||
@@ -44,7 +49,7 @@ class SupportScreen extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(width: 12),
|
||||
const Text(
|
||||
'Telegram',
|
||||
'Telegram: t.me/eatvio',
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
),
|
||||
@@ -56,10 +61,8 @@ class SupportScreen extends StatelessWidget {
|
||||
const SizedBox(height: 8),
|
||||
InkWell(
|
||||
onTap: () {
|
||||
launchUrl(
|
||||
Uri.parse('mailto:help@eatv.io'),
|
||||
mode: LaunchMode.externalApplication,
|
||||
);
|
||||
Clipboard.setData(const ClipboardData(text: 'help@eatv.io'));
|
||||
showInfoToast(s.mail_was_copied);
|
||||
},
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
child: Ink(
|
||||
@@ -73,7 +76,7 @@ class SupportScreen extends StatelessWidget {
|
||||
Icon(Icons.alternate_email_rounded),
|
||||
SizedBox(width: 12),
|
||||
Text(
|
||||
'E-mail',
|
||||
'E-mail: help@eatv.io',
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
),
|
||||
|
||||
@@ -371,6 +371,9 @@ class MessageLookup extends MessageLookupByLibrary {
|
||||
),
|
||||
"loading": MessageLookupByLibrary.simpleMessage("Загрузка..."),
|
||||
"lower": MessageLookupByLibrary.simpleMessage("Нижнее"),
|
||||
"mail_was_copied": MessageLookupByLibrary.simpleMessage(
|
||||
"Почта успешно скопирована",
|
||||
),
|
||||
"male": MessageLookupByLibrary.simpleMessage("Мужской"),
|
||||
"meal": MessageLookupByLibrary.simpleMessage("Приём пищи"),
|
||||
"mealComment": MessageLookupByLibrary.simpleMessage(
|
||||
|
||||
@@ -209,6 +209,9 @@ class MessageLookup extends MessageLookupByLibrary {
|
||||
"Ссылка успешно скопирована",
|
||||
),
|
||||
"loading": MessageLookupByLibrary.simpleMessage("Загрузка..."),
|
||||
"mail_was_copied": MessageLookupByLibrary.simpleMessage(
|
||||
"Почта успешно скопирована",
|
||||
),
|
||||
"male": MessageLookupByLibrary.simpleMessage("Мужской"),
|
||||
"meal": MessageLookupByLibrary.simpleMessage("Приём пищи"),
|
||||
"meat": MessageLookupByLibrary.simpleMessage("Мясо"),
|
||||
|
||||
@@ -1055,6 +1055,16 @@ class S {
|
||||
);
|
||||
}
|
||||
|
||||
/// `Почта успешно скопирована`
|
||||
String get mail_was_copied {
|
||||
return Intl.message(
|
||||
'Почта успешно скопирована',
|
||||
name: 'mail_was_copied',
|
||||
desc: '',
|
||||
args: [],
|
||||
);
|
||||
}
|
||||
|
||||
/// `Выберите дату старты диеты. Она отобразиться у Вас в дневнике`
|
||||
String get choose_start_diet_date {
|
||||
return Intl.message(
|
||||
|
||||
@@ -129,6 +129,7 @@
|
||||
"carbohydrates": "Углеводы",
|
||||
"answer": "Ответить",
|
||||
"link_was_copied": "Ссылка успешно скопирована",
|
||||
"mail_was_copied": "Почта успешно скопирована",
|
||||
"choose_start_diet_date": "Выберите дату старты диеты. Она отобразиться у Вас в дневнике",
|
||||
"continue_": "Продолжить",
|
||||
"order": "Порядок",
|
||||
|
||||
@@ -129,6 +129,7 @@
|
||||
"carbohydrates": "Углеводы",
|
||||
"answer": "Ответить",
|
||||
"link_was_copied": "Ссылка успешно скопирована",
|
||||
"mail_was_copied": "Почта успешно скопирована",
|
||||
"choose_start_diet_date": "Выберите дату старты диеты. Она отобразиться у Вас в дневнике",
|
||||
"continue_": "Продолжить",
|
||||
"order": "Порядок",
|
||||
|
||||
Reference in New Issue
Block a user