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,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user