mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
Merge pull request #18 from cake-tech/faq
faq | fixed faq page and added link to @cakewallet_bot to faq
This commit is contained in:
commit
465c69c776
12 changed files with 28 additions and 23 deletions
|
@ -53,6 +53,6 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"question" : "Wie kontaktiere ich den Cake Wallet-Support?",
|
"question" : "Wie kontaktiere ich den Cake Wallet-Support?",
|
||||||
"answer" : "Senden Sie eine E-Mail an support@cakewallet.io, schließen Sie sich dem Telegramm unter @cake_wallet an oder twittern Sie @CakeWalletXMR!\n"
|
"answer" : "Senden Sie eine E-Mail an support@cakewallet.io, schließen Sie sich dem Telegramm unter @cakewallet_bot an oder twittern Sie @CakeWalletXMR!\n"
|
||||||
}
|
}
|
||||||
]
|
]
|
|
@ -53,6 +53,6 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"question" : "How do I contact Cake Wallet support?",
|
"question" : "How do I contact Cake Wallet support?",
|
||||||
"answer" : "Email support@cakewallet.io, join the Telegram at @cake_wallet, or tweet @CakeWalletXMR!\n"
|
"answer" : "Email support@cakewallet.io, join the Telegram at @cakewallet_bot, or tweet @CakeWalletXMR!\n"
|
||||||
}
|
}
|
||||||
]
|
]
|
|
@ -53,6 +53,6 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"question" : "¿Cómo contacto al soporte de Cake Wallet?",
|
"question" : "¿Cómo contacto al soporte de Cake Wallet?",
|
||||||
"answer" : "¡Envíe un correo electrónico a support@cakewallet.io, únase al Telegram en @cake_wallet o envíe un tweet a @CakeWalletXMR!\n"
|
"answer" : "¡Envíe un correo electrónico a support@cakewallet.io, únase al Telegram en @cakewallet_bot o envíe un tweet a @CakeWalletXMR!\n"
|
||||||
}
|
}
|
||||||
]
|
]
|
|
@ -53,6 +53,6 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"question" : "मैं केक वॉलेट से कैसे संपर्क करूं?",
|
"question" : "मैं केक वॉलेट से कैसे संपर्क करूं?",
|
||||||
"answer" : "ईमेल support@cakewallet.io, @cake_wallet पर टेलीग्राम में शामिल हों, या @CakeWalletXMR पर ट्वीट करें!\n"
|
"answer" : "ईमेल support@cakewallet.io, @cakewallet_bot पर टेलीग्राम में शामिल हों, या @CakeWalletXMR पर ट्वीट करें!\n"
|
||||||
}
|
}
|
||||||
]
|
]
|
|
@ -53,6 +53,6 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"question" : "Cake Walletサポートに連絡するにはどうすればよいですか?",
|
"question" : "Cake Walletサポートに連絡するにはどうすればよいですか?",
|
||||||
"answer" : "support@cakewallet.ioにメールを送信するか、@ cake_walletで電報に参加するか、@ CakeWalletXMRにツイートしてください。\n"
|
"answer" : "support@cakewallet.ioにメールを送信するか、@cakewallet_botで電報に参加するか、@CakeWalletXMRにツイートしてください。\n"
|
||||||
}
|
}
|
||||||
]
|
]
|
|
@ -53,6 +53,6 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"question" : "Cake Wallet 지원팀에 연락하려면 어떻게해야합니까?",
|
"question" : "Cake Wallet 지원팀에 연락하려면 어떻게해야합니까?",
|
||||||
"answer" : "support@cakewallet.io로 이메일을 보내거나 @cake_wallet에서 전보에 가입하거나 @CakeWalletXMR을 트윗하십시오!\n"
|
"answer" : "support@cakewallet.io로 이메일을 보내거나 @cakewallet_bot에서 전보에 가입하거나 @CakeWalletXMR을 트윗하십시오!\n"
|
||||||
}
|
}
|
||||||
]
|
]
|
|
@ -53,6 +53,6 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"question" : "Hoe neem ik contact op met Cake Wallet-ondersteuning?",
|
"question" : "Hoe neem ik contact op met Cake Wallet-ondersteuning?",
|
||||||
"answer" : "E-mail support@cakewallet.io, word lid van het Telegram op @cake_wallet of tweet @CakeWalletXMR!\n"
|
"answer" : "E-mail support@cakewallet.io, word lid van het Telegram op @cakewallet_bot of tweet @CakeWalletXMR!\n"
|
||||||
}
|
}
|
||||||
]
|
]
|
|
@ -53,6 +53,6 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"question" : "Jak skontaktować się z obsługą Cake Wallet?",
|
"question" : "Jak skontaktować się z obsługą Cake Wallet?",
|
||||||
"answer" : "Wyślij e-mail na adres support@cakewallet.io, dołącz do telegramu na @cake_wallet lub tweet @CakeWalletXMR!\n"
|
"answer" : "Wyślij e-mail na adres support@cakewallet.io, dołącz do telegramu na @cakewallet_bot lub tweet @CakeWalletXMR!\n"
|
||||||
}
|
}
|
||||||
]
|
]
|
|
@ -53,6 +53,6 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"question" : "Como entro em contato com o suporte da Cake Wallet?",
|
"question" : "Como entro em contato com o suporte da Cake Wallet?",
|
||||||
"answer" : "Envie um e-mail para support@cakewallet.io, participe do Telegram em @cake_wallet ou envie um tweet para @CakeWalletXMR!\n"
|
"answer" : "Envie um e-mail para support@cakewallet.io, participe do Telegram em @cakewallet_bot ou envie um tweet para @CakeWalletXMR!\n"
|
||||||
}
|
}
|
||||||
]
|
]
|
|
@ -53,6 +53,6 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"question" : "Как мне связаться со службой поддержки Cake Wallet?",
|
"question" : "Как мне связаться со службой поддержки Cake Wallet?",
|
||||||
"answer" : "По электронной почте support@cakewallet.io, присоединитесь к Telegram по адресу @cake_wallet или отправьте твит @CakeWalletXMR!\n"
|
"answer" : "По электронной почте support@cakewallet.io, присоединитесь к Telegram по адресу @cakewallet_bot или отправьте твит @CakeWalletXMR!\n"
|
||||||
}
|
}
|
||||||
]
|
]
|
|
@ -53,6 +53,6 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"question" : "如何联系蛋糕钱包支持?",
|
"question" : "如何联系蛋糕钱包支持?",
|
||||||
"answer" : "电子邮件support@cakewallet.io,通过@cake_wallet加入电报,或在@CakeWalletXMR上发布推文!\n"
|
"answer" : "电子邮件support@cakewallet.io,通过@cakewallet_bot加入电报,或在@CakeWalletXMR上发布推文!\n"
|
||||||
}
|
}
|
||||||
]
|
]
|
|
@ -7,33 +7,38 @@ import 'package:cake_wallet/src/stores/settings/settings_store.dart';
|
||||||
import 'package:cake_wallet/src/screens/base_page.dart';
|
import 'package:cake_wallet/src/screens/base_page.dart';
|
||||||
|
|
||||||
class FaqPage extends BasePage {
|
class FaqPage extends BasePage {
|
||||||
@override
|
|
||||||
String get title => S.current.faq;
|
String get title => S.current.faq;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget body(BuildContext context) {
|
Widget body(BuildContext context) {
|
||||||
return FutureBuilder(
|
return FutureBuilder(
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
final faqItems = (json.decode(snapshot.data.toString())
|
final faqItems = jsonDecode(snapshot.data.toString()) as List;
|
||||||
as List<Map<String, String>>) ??
|
|
||||||
<Map<String, String>>[];
|
|
||||||
|
|
||||||
return ListView.separated(
|
return ListView.separated(
|
||||||
itemBuilder: (BuildContext context, int index) {
|
itemBuilder: (BuildContext context, int index) {
|
||||||
final itemTitle = faqItems[index]["question"];
|
final itemTitle = faqItems[index]["question"].toString();
|
||||||
final itemChild = faqItems[index]["answer"];
|
final itemChild = faqItems[index]["answer"].toString();
|
||||||
|
|
||||||
return ExpansionTile(
|
return ExpansionTile(
|
||||||
title: Text(itemTitle),
|
title: Text(
|
||||||
|
itemTitle
|
||||||
|
),
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: EdgeInsets.only(left: 15.0, right: 15.0),
|
padding: EdgeInsets.only(
|
||||||
child: Text(itemChild),
|
left: 15.0,
|
||||||
))
|
right: 15.0
|
||||||
|
),
|
||||||
|
child: Text(
|
||||||
|
itemChild,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
)
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
@ -41,7 +46,7 @@ class FaqPage extends BasePage {
|
||||||
},
|
},
|
||||||
separatorBuilder: (_, __) =>
|
separatorBuilder: (_, __) =>
|
||||||
Divider(color: Theme.of(context).dividerTheme.color, height: 1.0),
|
Divider(color: Theme.of(context).dividerTheme.color, height: 1.0),
|
||||||
itemCount: faqItems.length,
|
itemCount: faqItems == null ? 0 : faqItems.length,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
future: rootBundle.loadString(getFaqPath(context)),
|
future: rootBundle.loadString(getFaqPath(context)),
|
||||||
|
|
Loading…
Reference in a new issue