Skip to content

Commit c904041

Browse files
committed
Text change
1 parent ac4bd4f commit c904041

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

lib/ui/avatar/avatar.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class _AvatarPageState extends State<AvatarPage>
2626
AnimationController _controller;
2727
Animation<Color> bgColorAnimation;
2828
Animation<Offset> offsetTween;
29-
double accountBalance = 0;
29+
bool hasEnoughFunds;
3030
NatriconSetting _curNatriconSetting = NatriconSetting(NatriconOptions.ON);
3131
@override
3232
void initState() {
@@ -46,6 +46,8 @@ class _AvatarPageState extends State<AvatarPage>
4646

4747
@override
4848
Widget build(BuildContext context) {
49+
hasEnoughFunds = StateContainer.of(context).wallet.accountBalance >
50+
BigInt.parse("1234570000000000000000000000");
4951
bgColorAnimation = ColorTween(
5052
begin: Colors.transparent,
5153
end: StateContainer.of(context).curTheme.overlay70,
@@ -172,14 +174,14 @@ class _AvatarPageState extends State<AvatarPage>
172174
.size
173175
.height *
174176
0.035,
175-
top: accountBalance > -1 ? 24 : 16),
177+
top: hasEnoughFunds ? 24 : 16),
176178
child: Column(
177179
mainAxisSize: MainAxisSize.min,
178180
mainAxisAlignment:
179181
MainAxisAlignment.end,
180182
children: <Widget>[
181-
// If balance if below 0.13 Nano, don't display this button
182-
accountBalance > -1
183+
// If balance if below 0.0123457 Nano, don't display this button
184+
hasEnoughFunds
183185
? Row(
184186
children: <Widget>[
185187
AppButton.buildAppButton(

lib/ui/avatar/avatar_change.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class _AvatarChangePageState extends State<AvatarChangePage> {
119119
end: smallScreen(context) ? 30 : 40,
120120
top: 16.0),
121121
child: AutoSizeText(
122-
"You'll be asked to send 0.123~ Nano to the Natricon address to change your Natricon.",
122+
"You'll be asked to send 0.001~ Nano to the Natricon address to change your Natricon.",
123123
style: AppStyles.textStyleParagraph(context),
124124
maxLines: 3,
125125
stepGranularity: 0.5,

0 commit comments

Comments
 (0)