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:
M 2020-01-13 11:56:15 +02:00
commit 465c69c776
12 changed files with 28 additions and 23 deletions

View file

@ -53,6 +53,6 @@
},
{
"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"
}
]

View file

@ -53,6 +53,6 @@
},
{
"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"
}
]

View file

@ -53,6 +53,6 @@
},
{
"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"
}
]

View file

@ -53,6 +53,6 @@
},
{
"question" : "मैं केक वॉलेट से कैसे संपर्क करूं?",
"answer" : "ईमेल support@cakewallet.io, @cake_wallet पर टेलीग्राम में शामिल हों, या @CakeWalletXMR पर ट्वीट करें!\n"
"answer" : "ईमेल support@cakewallet.io, @cakewallet_bot पर टेलीग्राम में शामिल हों, या @CakeWalletXMR पर ट्वीट करें!\n"
}
]

View file

@ -53,6 +53,6 @@
},
{
"question" : "Cake Walletサポートに連絡するにはどうすればよいですか",
"answer" : "support@cakewallet.ioにメールを送信するか、@ cake_walletで電報に参加するか、@ CakeWalletXMRにツイートしてください。\n"
"answer" : "support@cakewallet.ioにメールを送信するか、@cakewallet_botで電報に参加するか、@CakeWalletXMRにツイートしてください。\n"
}
]

View file

@ -53,6 +53,6 @@
},
{
"question" : "Cake Wallet 지원팀에 연락하려면 어떻게해야합니까?",
"answer" : "support@cakewallet.io로 이메일을 보내거나 @cake_wallet에서 전보에 가입하거나 @CakeWalletXMR을 트윗하십시오!\n"
"answer" : "support@cakewallet.io로 이메일을 보내거나 @cakewallet_bot에서 전보에 가입하거나 @CakeWalletXMR을 트윗하십시오!\n"
}
]

View file

@ -53,6 +53,6 @@
},
{
"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"
}
]

View file

@ -53,6 +53,6 @@
},
{
"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"
}
]

View file

@ -53,6 +53,6 @@
},
{
"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"
}
]

View file

@ -53,6 +53,6 @@
},
{
"question" : "Как мне связаться со службой поддержки Cake Wallet?",
"answer" : "По электронной почте support@cakewallet.io, присоединитесь к Telegram по адресу @cake_wallet или отправьте твит @CakeWalletXMR!\n"
"answer" : "По электронной почте support@cakewallet.io, присоединитесь к Telegram по адресу @cakewallet_bot или отправьте твит @CakeWalletXMR!\n"
}
]

View file

@ -53,6 +53,6 @@
},
{
"question" : "如何联系蛋糕钱包支持?",
"answer" : "电子邮件support@cakewallet.io通过@cake_wallet加入电报或在@CakeWalletXMR上发布推文\n"
"answer" : "电子邮件support@cakewallet.io通过@cakewallet_bot加入电报,或在@CakeWalletXMR上发布推文\n"
}
]

View file

@ -7,33 +7,38 @@ import 'package:cake_wallet/src/stores/settings/settings_store.dart';
import 'package:cake_wallet/src/screens/base_page.dart';
class FaqPage extends BasePage {
@override
String get title => S.current.faq;
@override
Widget body(BuildContext context) {
return FutureBuilder(
builder: (context, snapshot) {
final faqItems = (json.decode(snapshot.data.toString())
as List<Map<String, String>>) ??
<Map<String, String>>[];
final faqItems = jsonDecode(snapshot.data.toString()) as List;
return ListView.separated(
itemBuilder: (BuildContext context, int index) {
final itemTitle = faqItems[index]["question"];
final itemChild = faqItems[index]["answer"];
final itemTitle = faqItems[index]["question"].toString();
final itemChild = faqItems[index]["answer"].toString();
return ExpansionTile(
title: Text(itemTitle),
title: Text(
itemTitle
),
children: <Widget>[
Row(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Expanded(
child: Container(
padding: EdgeInsets.only(left: 15.0, right: 15.0),
child: Text(itemChild),
))
padding: EdgeInsets.only(
left: 15.0,
right: 15.0
),
child: Text(
itemChild,
),
)
)
],
)
],
@ -41,7 +46,7 @@ class FaqPage extends BasePage {
},
separatorBuilder: (_, __) =>
Divider(color: Theme.of(context).dividerTheme.color, height: 1.0),
itemCount: faqItems.length,
itemCount: faqItems == null ? 0 : faqItems.length,
);
},
future: rootBundle.loadString(getFaqPath(context)),