mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-09 20:39:35 +00:00
save
This commit is contained in:
parent
b76263be36
commit
4ebfcc2bbd
2 changed files with 22 additions and 12 deletions
|
@ -167,7 +167,7 @@ class LightningInvoicePage extends BasePage {
|
||||||
min = bitcoinAmountToLightningString(amount: int.parse(min) ~/ 1000);
|
min = bitcoinAmountToLightningString(amount: int.parse(min) ~/ 1000);
|
||||||
return Expanded(
|
return Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
"A setup fee of 0.4% with a minimum of ${min} sats will be applied upon receiving this invoice.",
|
S.of(context).lightning_invoice_min(min),
|
||||||
maxLines: 3,
|
maxLines: 3,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
|
|
|
@ -9,6 +9,7 @@ import 'package:cake_wallet/utils/brightness_util.dart';
|
||||||
import 'package:cake_wallet/utils/show_bar.dart';
|
import 'package:cake_wallet/utils/show_bar.dart';
|
||||||
import 'package:cake_wallet/view_model/dashboard/receive_option_view_model.dart';
|
import 'package:cake_wallet/view_model/dashboard/receive_option_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/lightning_view_model.dart';
|
import 'package:cake_wallet/view_model/lightning_view_model.dart';
|
||||||
|
import 'package:cw_bitcoin/bitcoin_amount_format.dart';
|
||||||
import 'package:cw_core/receive_page_option.dart';
|
import 'package:cw_core/receive_page_option.dart';
|
||||||
import 'package:cw_lightning/lightning_receive_page_option.dart';
|
import 'package:cw_lightning/lightning_receive_page_option.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
@ -199,17 +200,26 @@ class LightningReceiveOnchainPage extends BasePage {
|
||||||
margin: EdgeInsets.only(left: 12, bottom: 48, right: 12),
|
margin: EdgeInsets.only(left: 12, bottom: 48, right: 12),
|
||||||
child: Image.asset("assets/images/warning.png"),
|
child: Image.asset("assets/images/warning.png"),
|
||||||
),
|
),
|
||||||
Expanded(
|
FutureBuilder(
|
||||||
child: Text(
|
future: lightningViewModel.invoiceLimitsSats(),
|
||||||
"Send more than 20,029 sats and up to 3,998,387 sats to this address. A setup fee of 0.4% with a minimum of 2,079 sats will be applied upon receiving this invoice. This will convert any received Bitcoin into Lightning. An on-chain fee will be applied. This address can only be used once.",
|
builder: (context, snapshot) {
|
||||||
maxLines: 10,
|
if (snapshot.data == null) {
|
||||||
style: TextStyle(
|
return SizedBox();
|
||||||
fontSize: 14,
|
}
|
||||||
fontWeight: FontWeight.w500,
|
String min = (snapshot.data as List<String>)[0];
|
||||||
color: Theme.of(context).extension<DashboardPageTheme>()!.textColor,
|
min = bitcoinAmountToLightningString(amount: int.parse(min) ~/ 1000);
|
||||||
),
|
return Expanded(
|
||||||
),
|
child: Text(
|
||||||
),
|
"Send more than 20,029 sats and up to 3,998,387 sats to this address. A setup fee of 0.4% with a minimum of 2,079 sats will be applied upon receiving this invoice. This will convert any received Bitcoin into Lightning. An on-chain fee will be applied. This address can only be used once.",
|
||||||
|
maxLines: 10,
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 14,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
color: Theme.of(context).extension<DashboardPageTheme>()!.textColor,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue