2021-02-25 18:25:52 +00:00
|
|
|
import 'package:cake_wallet/generated/i18n.dart';
|
|
|
|
import 'package:cake_wallet/view_model/settings/link_list_item.dart';
|
|
|
|
import 'package:cake_wallet/view_model/settings/regular_list_item.dart';
|
|
|
|
import 'package:cake_wallet/view_model/settings/settings_list_item.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:mobx/mobx.dart';
|
2021-03-01 18:16:28 +00:00
|
|
|
import 'package:url_launcher/url_launcher.dart';
|
2021-12-30 17:20:00 +00:00
|
|
|
import 'package:cake_wallet/wallet_type_utils.dart';
|
2021-02-25 18:25:52 +00:00
|
|
|
|
|
|
|
part 'support_view_model.g.dart';
|
|
|
|
|
|
|
|
class SupportViewModel = SupportViewModelBase with _$SupportViewModel;
|
|
|
|
|
|
|
|
abstract class SupportViewModelBase with Store {
|
2022-10-12 17:09:57 +00:00
|
|
|
SupportViewModelBase()
|
|
|
|
: items = [
|
2021-02-25 18:25:52 +00:00
|
|
|
RegularListItem(
|
|
|
|
title: S.current.faq,
|
2021-03-01 18:16:28 +00:00
|
|
|
handler: (BuildContext context) async {
|
2023-02-27 14:07:22 +00:00
|
|
|
try {
|
|
|
|
await launch(url);
|
|
|
|
} catch (e) {}
|
2021-03-01 18:16:28 +00:00
|
|
|
},
|
2021-02-25 18:25:52 +00:00
|
|
|
),
|
|
|
|
LinkListItem(
|
|
|
|
title: 'Email',
|
|
|
|
linkTitle: 'support@cakewallet.com',
|
|
|
|
link: 'mailto:support@cakewallet.com'),
|
2022-01-05 19:17:50 +00:00
|
|
|
if (!isMoneroOnly)
|
|
|
|
LinkListItem(
|
|
|
|
title: 'Website',
|
|
|
|
linkTitle: 'cakewallet.com',
|
|
|
|
link: 'https://cakewallet.com'),
|
|
|
|
if (!isMoneroOnly)
|
|
|
|
LinkListItem(
|
|
|
|
title: 'GitHub',
|
|
|
|
icon: 'assets/images/github.png',
|
|
|
|
hasIconColor: true,
|
|
|
|
linkTitle: S.current.apk_update,
|
|
|
|
link: 'https://github.com/cake-tech/cake_wallet/releases'),
|
2021-02-25 18:25:52 +00:00
|
|
|
LinkListItem(
|
|
|
|
title: 'Telegram',
|
|
|
|
icon: 'assets/images/Telegram.png',
|
|
|
|
linkTitle: '@cakewallet_bot',
|
2023-02-08 19:33:54 +00:00
|
|
|
link: 'https://t.me/cakewallet_bot'),
|
2021-02-25 18:25:52 +00:00
|
|
|
LinkListItem(
|
|
|
|
title: 'Twitter',
|
|
|
|
icon: 'assets/images/Twitter.png',
|
|
|
|
linkTitle: '@cakewallet',
|
|
|
|
link: 'https://twitter.com/cakewallet'),
|
|
|
|
LinkListItem(
|
|
|
|
title: 'ChangeNow',
|
|
|
|
icon: 'assets/images/change_now.png',
|
|
|
|
linkTitle: 'support@changenow.io',
|
2021-03-26 18:59:38 +00:00
|
|
|
link: 'mailto:support@changenow.io'),
|
2022-11-02 18:11:05 +00:00
|
|
|
LinkListItem(
|
|
|
|
title: 'SideShift',
|
|
|
|
icon: 'assets/images/sideshift.png',
|
|
|
|
linkTitle: S.current.help,
|
|
|
|
link: 'https://help.sideshift.ai/en/'),
|
|
|
|
LinkListItem(
|
|
|
|
title: 'SimpleSwap',
|
|
|
|
icon: 'assets/images/simpleSwap.png',
|
|
|
|
linkTitle: 'support@simpleswap.io',
|
|
|
|
link: 'mailto:support@simpleswap.io'),
|
2022-10-12 17:09:57 +00:00
|
|
|
if (!isMoneroOnly) ... [
|
|
|
|
LinkListItem(
|
|
|
|
title: 'Wyre',
|
|
|
|
icon: 'assets/images/wyre.png',
|
|
|
|
linkTitle: S.current.submit_request,
|
|
|
|
link: 'https://wyre-support.zendesk.com/hc/en-us/requests/new'),
|
|
|
|
LinkListItem(
|
|
|
|
title: 'MoonPay',
|
|
|
|
icon: 'assets/images/moonpay.png',
|
|
|
|
hasIconColor: true,
|
|
|
|
linkTitle: S.current.submit_request,
|
|
|
|
link: 'https://support.moonpay.com/hc/en-gb/requests/new')
|
|
|
|
]
|
2021-12-30 17:20:00 +00:00
|
|
|
//LinkListItem(
|
|
|
|
// title: 'Yat',
|
|
|
|
// icon: 'assets/images/yat_mini_logo.png',
|
|
|
|
// hasIconColor: true,
|
|
|
|
// linkTitle: 'support@y.at',
|
|
|
|
// link: 'mailto:support@y.at')
|
2022-10-12 17:09:57 +00:00
|
|
|
];
|
|
|
|
|
2023-02-08 19:33:54 +00:00
|
|
|
static const url = 'https://guides.cakewallet.com';
|
2021-03-01 18:16:28 +00:00
|
|
|
|
2021-02-25 18:25:52 +00:00
|
|
|
List<SettingsListItem> items;
|
|
|
|
}
|