mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-22 02:24:30 +00:00
frost display WU instead of vByte
This commit is contained in:
parent
ccca53f3d8
commit
fc3ec6aa0a
2 changed files with 4 additions and 1 deletions
|
@ -524,6 +524,7 @@ class _FrostSendViewState extends ConsumerState<FrostSendView> {
|
||||||
),
|
),
|
||||||
child: FeeSlider(
|
child: FeeSlider(
|
||||||
coin: coin,
|
coin: coin,
|
||||||
|
showWU: true,
|
||||||
onSatVByteChanged: (rate) {
|
onSatVByteChanged: (rate) {
|
||||||
customFeeRate = rate;
|
customFeeRate = rate;
|
||||||
},
|
},
|
||||||
|
|
|
@ -9,9 +9,11 @@ class FeeSlider extends StatefulWidget {
|
||||||
super.key,
|
super.key,
|
||||||
required this.onSatVByteChanged,
|
required this.onSatVByteChanged,
|
||||||
required this.coin,
|
required this.coin,
|
||||||
|
this.showWU = false,
|
||||||
});
|
});
|
||||||
|
|
||||||
final Coin coin;
|
final Coin coin;
|
||||||
|
final bool showWU;
|
||||||
final void Function(int) onSatVByteChanged;
|
final void Function(int) onSatVByteChanged;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
@ -34,7 +36,7 @@ class _FeeSliderState extends State<FeeSlider> {
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"sat/vByte",
|
widget.showWU ? "sat/WU" : "sat/vByte",
|
||||||
style: STextStyles.smallMed12(context),
|
style: STextStyles.smallMed12(context),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
|
|
Loading…
Reference in a new issue