@@ -59,8 +59,10 @@ class _NodeCardState extends ConsumerState<NodeCard> {
5959 bool _advancedIsExpanded = false ;
6060
6161 Future <void > _notifyWalletsOfUpdatedNode (WidgetRef ref) async {
62- final wallets =
63- ref.read (pWallets).wallets.where ((e) => e.info.coin == widget.coin);
62+ final wallets = ref
63+ .read (pWallets)
64+ .wallets
65+ .where ((e) => e.info.coin == widget.coin);
6466 final prefs = ref.read (prefsChangeNotifierProvider);
6567
6668 switch (prefs.syncType) {
@@ -100,12 +102,14 @@ class _NodeCardState extends ConsumerState<NodeCard> {
100102 @override
101103 Widget build (BuildContext context) {
102104 final node = ref.watch (
103- nodeServiceChangeNotifierProvider
104- .select ((value) => value.getPrimaryNodeFor (currency: widget.coin)),
105+ nodeServiceChangeNotifierProvider.select (
106+ (value) => value.getPrimaryNodeFor (currency: widget.coin),
107+ ),
105108 );
106109 final _node = ref.watch (
107- nodeServiceChangeNotifierProvider
108- .select ((value) => value.getNodeById (id: nodeId)),
110+ nodeServiceChangeNotifierProvider.select (
111+ (value) => value.getNodeById (id: nodeId),
112+ ),
109113 )! ;
110114
111115 if (node? .name == _node.name) {
@@ -155,14 +159,10 @@ class _NodeCardState extends ConsumerState<NodeCard> {
155159 },
156160 header: child,
157161 body: Padding (
158- padding: const EdgeInsets .only (
159- bottom: 24 ,
160- ),
162+ padding: const EdgeInsets .only (bottom: 24 ),
161163 child: Row (
162164 children: [
163- const SizedBox (
164- width: 66 ,
165- ),
165+ const SizedBox (width: 66 ),
166166 CustomTextButton (
167167 text: "Connect" ,
168168 enabled: _status == "Disconnected" ,
@@ -190,13 +190,12 @@ class _NodeCardState extends ConsumerState<NodeCard> {
190190 );
191191
192192 if (context.mounted) {
193- final canConnect = await ref.read (
194- testNodeConnectionProvider,
195- )(
196- context: context,
197- nodeFormData: nodeFormData,
198- cryptoCurrency: widget.coin,
199- );
193+ final canConnect =
194+ await ref.read (testNodeConnectionProvider)(
195+ context: context,
196+ nodeFormData: nodeFormData,
197+ cryptoCurrency: widget.coin,
198+ );
200199
201200 if (! canConnect) {
202201 if (context.mounted) {
@@ -224,9 +223,7 @@ class _NodeCardState extends ConsumerState<NodeCard> {
224223 }
225224 },
226225 ),
227- const SizedBox (
228- width: 48 ,
229- ),
226+ const SizedBox (width: 48 ),
230227 CustomTextButton (
231228 text: "Details" ,
232229 onTap: () {
@@ -254,13 +251,13 @@ class _NodeCardState extends ConsumerState<NodeCard> {
254251 height: isDesktop ? 40 : 24 ,
255252 decoration: BoxDecoration (
256253 color: _node.id.startsWith (DefaultNodes .defaultNodeIdPrefix)
257- ? Theme .of (context)
258- . extension < StackColors > () !
259- .buttonBackSecondary
254+ ? Theme .of (
255+ context,
256+ ). extension < StackColors > () ! .buttonBackSecondary
260257 : Theme .of (context)
261- .extension < StackColors > ()!
262- .infoItemIcons
263- .withOpacity (0.2 ),
258+ .extension < StackColors > ()!
259+ .infoItemIcons
260+ .withOpacity (0.2 ),
264261 borderRadius: BorderRadius .circular (100 ),
265262 ),
266263 child: Center (
@@ -270,45 +267,35 @@ class _NodeCardState extends ConsumerState<NodeCard> {
270267 width: isDesktop ? 20 : 14 ,
271268 color:
272269 _node.id.startsWith (DefaultNodes .defaultNodeIdPrefix)
273- ? Theme .of (context)
274- . extension < StackColors > () !
275- .accentColorDark
276- : Theme .of (context)
277- . extension < StackColors > () !
278- .infoItemIcons,
270+ ? Theme .of (
271+ context,
272+ ). extension < StackColors > () ! .accentColorDark
273+ : Theme .of (
274+ context,
275+ ). extension < StackColors > () ! .infoItemIcons,
279276 ),
280277 ),
281278 ),
282- const SizedBox (
283- width: 12 ,
284- ),
279+ const SizedBox (width: 12 ),
285280 Column (
286281 crossAxisAlignment: CrossAxisAlignment .start,
287282 children: [
288- Text (
289- _node.name,
290- style: STextStyles .titleBold12 (context),
291- ),
292- const SizedBox (
293- height: 2 ,
294- ),
295- Text (
296- _status,
297- style: STextStyles .label (context),
298- ),
283+ Text (_node.name, style: STextStyles .titleBold12 (context)),
284+ const SizedBox (height: 2 ),
285+ Text (_status, style: STextStyles .label (context)),
299286 ],
300287 ),
301288 const Spacer (),
302289 if (! isDesktop)
303290 SvgPicture .asset (
304291 Assets .svg.network,
305292 color: _status == "Connected"
306- ? Theme .of (context)
307- . extension < StackColors > () !
308- .accentColorGreen
309- : Theme .of (context)
310- . extension < StackColors > () !
311- .buttonBackSecondary,
293+ ? Theme .of (
294+ context,
295+ ). extension < StackColors > () ! .accentColorGreen
296+ : Theme .of (
297+ context,
298+ ). extension < StackColors > () ! .buttonBackSecondary,
312299 width: 20 ,
313300 height: 20 ,
314301 ),
@@ -319,9 +306,9 @@ class _NodeCardState extends ConsumerState<NodeCard> {
319306 : Assets .svg.chevronDown,
320307 width: 12 ,
321308 height: 6 ,
322- color: Theme .of (context)
323- . extension < StackColors > () !
324- .textSubtitle1,
309+ color: Theme .of (
310+ context,
311+ ). extension < StackColors > () ! .textSubtitle1,
325312 ),
326313 ],
327314 ),
0 commit comments