@@ -63,8 +63,8 @@ class _NodePageState extends State<NodePage> with TickerProviderStateMixin {
63
63
final double buttonIconSize = 40.0 ;
64
64
final blue = Color .fromARGB (255 , 0 , 255 , 255 );
65
65
66
- final blueTextstyle = TextStyle (color: blue, fontSize: 25 );
67
- final whiteTextstyle = TextStyle (color: Colors .white, fontSize: 25 );
66
+ final blueTextstyle = TextStyle (color: blue, fontSize: 18 );
67
+ final whiteTextstyle = TextStyle (color: Colors .white, fontSize: 18 );
68
68
final edgeTexts = EdgeInsets .only (left: 30 , right: 30 );
69
69
final dateTime = DateTime .now ();
70
70
time = formatDate (dateTime, [yyyy, '/' , mm, '/' , dd, ' ' , HH , ':' , nn]);
@@ -117,7 +117,7 @@ class _NodePageState extends State<NodePage> with TickerProviderStateMixin {
117
117
tmpText = lines.sublist (lines.length - maxLines).join ();
118
118
}
119
119
setState (() {
120
- text = tmpText;
120
+ text = tmpText;
121
121
});
122
122
});
123
123
startRequest = true ;
@@ -406,7 +406,7 @@ class _NodePageState extends State<NodePage> with TickerProviderStateMixin {
406
406
final balance = await node.balanceOfStc (address);
407
407
final nodeInfo = await node.nodeInfo ();
408
408
final totalDifficulty =
409
- nodeInfo['peer_info' ]['chain_info' ]['total_difficulty' ];
409
+ nodeInfo['peer_info' ]['chain_info' ]['block_info' ][ ' total_difficulty' ];
410
410
411
411
final syncProgress = await node.syncProgress ();
412
412
var taskNames;
@@ -420,7 +420,8 @@ class _NodePageState extends State<NodePage> with TickerProviderStateMixin {
420
420
this .address = address.toString ();
421
421
this .balance = balance.toBigInt () / BigInt .from (1000000000 );
422
422
this .difficulty = totalDifficulty;
423
- this .taskName = taskNames[taskNames.length - 1 ];
423
+ if (taskNames!= null )
424
+ this .taskName = taskNames[taskNames.length - 1 ];
424
425
this .percent = percent;
425
426
});
426
427
}
0 commit comments