mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-23 06:38:35 +02:00
Update support links (#1876)
This commit is contained in:
@@ -320,7 +320,7 @@ class CryptoBalanceWidget extends StatelessWidget {
|
||||
behavior: HitTestBehavior.opaque,
|
||||
onTap: () => launchUrl(
|
||||
Uri.parse(
|
||||
"https://guides.cakewallet.com/docs/cryptos/bitcoin/#silent-payments"),
|
||||
"https://docs.cakewallet.com/cryptos/bitcoin#silent-payments"),
|
||||
mode: LaunchMode.externalApplication,
|
||||
),
|
||||
child: Row(
|
||||
@@ -894,7 +894,7 @@ class BalanceRowWidget extends StatelessWidget {
|
||||
behavior: HitTestBehavior.opaque,
|
||||
onTap: () => launchUrl(
|
||||
Uri.parse(
|
||||
"https://guides.cakewallet.com/docs/cryptos/litecoin/#mweb"),
|
||||
"https://docs.cakewallet.com/cryptos/litecoin.html#mweb"),
|
||||
mode: LaunchMode.externalApplication,
|
||||
),
|
||||
child: Row(
|
||||
|
||||
@@ -53,7 +53,7 @@ class TransactionsPage extends StatelessWidget {
|
||||
onTap: () {
|
||||
try {
|
||||
final uri = Uri.parse(
|
||||
"https://guides.cakewallet.com/docs/FAQ/why_are_my_funds_not_appearing/");
|
||||
"https://docs.cakewallet.com/faq/funds-not-appearing");
|
||||
launchUrl(uri, mode: LaunchMode.externalApplication);
|
||||
} catch (_) {}
|
||||
},
|
||||
|
||||
@@ -20,7 +20,7 @@ class Setup2FAPage extends BasePage {
|
||||
Widget body(BuildContext context) {
|
||||
final cake2FAGuideTitle = 'Cake 2FA Guide';
|
||||
final cake2FAGuideUri =
|
||||
Uri.parse('https://guides.cakewallet.com/docs/advanced-features/authentication');
|
||||
Uri.parse('https://docs.cakewallet.com/features/advanced/authentication/');
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
|
||||
@@ -6,7 +6,6 @@ import 'package:cake_wallet/src/widgets/standard_list.dart';
|
||||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
import 'package:cake_wallet/routes.dart';
|
||||
import 'package:cake_wallet/themes/extensions/cake_text_theme.dart';
|
||||
import 'package:cake_wallet/themes/extensions/dashboard_page_theme.dart';
|
||||
import 'package:cake_wallet/utils/clipboard_util.dart';
|
||||
import 'package:cake_wallet/utils/show_bar.dart';
|
||||
import 'package:cake_wallet/view_model/set_up_2fa_viewmodel.dart';
|
||||
@@ -30,7 +29,7 @@ class Setup2FAQRPage extends BasePage {
|
||||
width: 16,
|
||||
color: Theme.of(context).extension<CakeTextTheme>()!.titleColor);
|
||||
final cake2FAHowToUseUrl = Uri.parse(
|
||||
'https://guides.cakewallet.com/docs/advanced-features/authentication/#enabling-cake-2fa');
|
||||
'https://docs.cakewallet.com/features/advanced/authentication/#enabling-cake-2fa');
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 24),
|
||||
child: Column(
|
||||
|
||||
@@ -70,7 +70,7 @@ class SupportPage extends BasePage {
|
||||
),
|
||||
title: S.of(context).support_title_guides,
|
||||
description: S.of(context).support_description_guides,
|
||||
onPressed: () => _launchUrl(supportViewModel.guidesUrl),
|
||||
onPressed: () => _launchUrl(supportViewModel.docsUrl),
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
|
||||
@@ -31,10 +31,15 @@ abstract class SupportViewModelBase with Store {
|
||||
linkTitle: S.current.apk_update,
|
||||
link: 'https://github.com/cake-tech/cake_wallet/releases'),
|
||||
LinkListItem(
|
||||
title: 'Telegram Community',
|
||||
icon: 'assets/images/Telegram.png',
|
||||
linkTitle: 't.me/cakewallet',
|
||||
link: 'https://t.me/cakewallet'),
|
||||
title: 'Discord',
|
||||
icon: 'assets/images/discord.png',
|
||||
linkTitle: 'discord.gg/pwmWa6aFpX',
|
||||
link: 'https://discord.gg/pwmWa6aFpX'),
|
||||
LinkListItem(
|
||||
title: 'Telegram',
|
||||
icon: 'assets/images/Telegram.png',
|
||||
linkTitle: 't.me/cakewallet',
|
||||
link: 'https://t.me/cakewalletannouncements'),
|
||||
LinkListItem(
|
||||
title: 'Telegram Support Bot',
|
||||
icon: 'assets/images/Telegram.png',
|
||||
@@ -75,7 +80,7 @@ abstract class SupportViewModelBase with Store {
|
||||
icon: 'assets/images/onramper_dark.png',
|
||||
lightIcon: 'assets/images/onramper_light.png',
|
||||
linkTitle: 'View exchanges',
|
||||
link: 'https://guides.cakewallet.com/docs/service-support/buy/#onramper'),
|
||||
link: 'https://docs.cakewallet.com/support/buy/#onramper'),
|
||||
LinkListItem(
|
||||
title: 'DFX',
|
||||
icon: 'assets/images/dfx_dark.png',
|
||||
@@ -103,7 +108,7 @@ abstract class SupportViewModelBase with Store {
|
||||
// link: 'mailto:support@y.at')
|
||||
];
|
||||
|
||||
final guidesUrl = 'https://guides.cakewallet.com';
|
||||
final docsUrl = 'https://docs.cakewallet.com';
|
||||
|
||||
String fetchUrl({String locale = "en", String authToken = ""}) {
|
||||
var supportUrl =
|
||||
|
||||
Reference in New Issue
Block a user