Skip to content

Commit c520e17

Browse files
authored
Replace nodes condition after title (#1088)
1 parent e6bb7a2 commit c520e17

1 file changed

Lines changed: 24 additions & 23 deletions

File tree

app/lib/screens/farm_details.dart

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,13 @@ class _FarmDetailsState extends State<FarmDetails> {
343343
.text,
344344
wallets: widget.wallets
345345
.where((w) =>
346-
double.tryParse(w
347-
.stellarBalances['TFT']!) !=
346+
double.tryParse(
347+
w.stellarBalances[
348+
'TFT']!) !=
348349
null &&
349-
double.parse(w
350-
.stellarBalances['TFT']!) >=
350+
double.parse(
351+
w.stellarBalances[
352+
'TFT']!) >=
351353
0)
352354
.toList(),
353355
onSelectToAddress:
@@ -504,24 +506,23 @@ class _FarmDetailsState extends State<FarmDetails> {
504506
),
505507
),
506508
],
507-
if (widget.farm.nodes.isNotEmpty)
508-
Column(
509-
crossAxisAlignment: CrossAxisAlignment.start,
510-
children: [
511-
const Divider(height: 20, thickness: 1),
512-
Padding(
513-
padding: const EdgeInsets.symmetric(vertical: 8.0),
514-
child: Text(
515-
'Nodes (${widget.farm.nodes.length})',
516-
style: Theme.of(context)
517-
.textTheme
518-
.titleMedium
519-
?.copyWith(
520-
color:
521-
Theme.of(context).colorScheme.onSurface,
522-
),
523-
),
509+
Column(
510+
crossAxisAlignment: CrossAxisAlignment.start,
511+
children: [
512+
const Divider(height: 20, thickness: 1),
513+
Padding(
514+
padding: const EdgeInsets.symmetric(vertical: 8.0),
515+
child: Text(
516+
'Nodes (${widget.farm.nodes.length})',
517+
style: Theme.of(context)
518+
.textTheme
519+
.titleMedium
520+
?.copyWith(
521+
color: Theme.of(context).colorScheme.onSurface,
522+
),
524523
),
524+
),
525+
if (widget.farm.nodes.isNotEmpty)
525526
ListView.builder(
526527
shrinkWrap: true,
527528
physics: const NeverScrollableScrollPhysics(),
@@ -548,8 +549,8 @@ class _FarmDetailsState extends State<FarmDetails> {
548549
);
549550
},
550551
),
551-
],
552-
),
552+
],
553+
),
553554
],
554555
),
555556
),

0 commit comments

Comments
 (0)