feat(env): Issue-588

This commit is contained in:
mso7nueh
2025-08-01 16:58:48 +03:00
parent 5b616a9dc1
commit 681c11fed9
3 changed files with 12 additions and 8 deletions

View File

@@ -7,6 +7,7 @@ import 'package:flutter/services.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:eatvio_app/core/env_config.dart';
import 'package:eatvio_app/core/const.dart';
class SupportScreen extends StatelessWidget {
const SupportScreen({super.key});
@@ -37,7 +38,7 @@ class SupportScreen extends StatelessWidget {
children: [
SvgPicture.asset('assets/icons/telegram.svg', colorFilter: const ColorFilter.mode(Colors.black, BlendMode.srcIn)),
const SizedBox(width: 12),
const Text('Telegram: t.me/eatvio', style: TextStyle(fontSize: 16)),
Text('Telegram: ${EnvConfig.telegramSupportUrl.replaceFirst('https://', '')}', style: const TextStyle(fontSize: 16)),
],
),
),
@@ -45,7 +46,7 @@ class SupportScreen extends StatelessWidget {
const SizedBox(height: 8),
InkWell(
onTap: () {
Clipboard.setData(const ClipboardData(text: 'help@eatv.io'));
Clipboard.setData(ClipboardData(text: EnvConfig.supportEmail));
showInfoToast(s.mail_was_copied);
},
borderRadius: BorderRadius.circular(16),
@@ -53,11 +54,11 @@ class SupportScreen extends StatelessWidget {
decoration: BoxDecoration(borderRadius: BorderRadius.circular(16)),
width: double.infinity,
padding: const EdgeInsets.all(16),
child: const Row(
child: Row(
children: [
Icon(Icons.alternate_email_rounded),
SizedBox(width: 12),
Text('E-mail: help@eatv.io', style: TextStyle(fontSize: 16)),
const Icon(Icons.alternate_email_rounded),
const SizedBox(width: 12),
Text('E-mail: ${EnvConfig.supportEmail}', style: const TextStyle(fontSize: 16)),
],
),
),