Cw 55 allow saving templateswith fiat amount (#343)

* added xhv logo

* Added prefix icon widget

* Added sending fiat template

* template for sending selected fiat currency

* fix issues
This commit is contained in:
Serhii
2022-05-03 11:44:13 +01:00
committed by GitHub
parent 75da854121
commit c08f2c1667
9 changed files with 135 additions and 39 deletions
+3 -3
View File
@@ -23,9 +23,9 @@ abstract class SendTemplateBase with Store {
templates.replaceRange(0, templates.length, templateSource.values.toList());
@action
Future addTemplate({String name, String address, String cryptoCurrency, String amount}) async {
final template = Template(name: name, address: address,
cryptoCurrency: cryptoCurrency, amount: amount);
Future addTemplate({String name,bool isCurrencySelected, String address, String cryptoCurrency, String fiatCurrency, String amount,String amountFiat}) async {
final template = Template(name: name,isCurrencySelected: isCurrencySelected, address: address,
cryptoCurrency: cryptoCurrency, fiatCurrency: fiatCurrency, amount: amount, amountFiat: amountFiat);
await templateSource.add(template);
}