mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-09 20:39:35 +00:00
minor fixes
This commit is contained in:
parent
b97e2860ff
commit
27add70e61
2 changed files with 9 additions and 8 deletions
|
@ -208,15 +208,16 @@ class LightningReceiveOnchainPage extends BasePage {
|
||||||
return Expanded(
|
return Expanded(
|
||||||
child: Container(child: Center(child: CircularProgressIndicator())));
|
child: Container(child: Center(child: CircularProgressIndicator())));
|
||||||
}
|
}
|
||||||
String min = (snapshot.data as List<String>)[1];
|
int min = (snapshot.data as List<int>)[1];
|
||||||
String max = (snapshot.data as List<String>)[2];
|
int max = (snapshot.data as List<int>)[2];
|
||||||
String fee = (snapshot.data as List<String>)[3];
|
int fee = (snapshot.data as List<int>)[3];
|
||||||
min = satsToLightningString(double.parse(min));
|
|
||||||
max = satsToLightningString(double.parse(max));
|
|
||||||
fee = satsToLightningString(double.parse(fee));
|
|
||||||
return Expanded(
|
return Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).lightning_receive_limits(min, max, fee),
|
S.of(context).lightning_receive_limits(
|
||||||
|
satsToLightningString(min),
|
||||||
|
satsToLightningString(max),
|
||||||
|
satsToLightningString(fee),
|
||||||
|
),
|
||||||
maxLines: 10,
|
maxLines: 10,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
|
|
|
@ -45,7 +45,7 @@ class LightningInvoiceForm extends StatelessWidget {
|
||||||
controller: amountController,
|
controller: amountController,
|
||||||
focusNode: depositAmountFocus,
|
focusNode: depositAmountFocus,
|
||||||
maxAmount: '',
|
maxAmount: '',
|
||||||
minAmount: (lightningInvoicePageViewModel.minimum != null) ? satsToLightningString(lightningInvoicePageViewModel.minimum!) : '...',
|
minAmount: (lightningInvoicePageViewModel.minimum != null) ? satsToLightningString(lightningInvoicePageViewModel.minimum!.round()) : '...',
|
||||||
selectedCurrency: CryptoCurrency.satoshis,
|
selectedCurrency: CryptoCurrency.satoshis,
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in a new issue