From 173e68ea0d5decb41b07e78c8db86cb6e4817d19 Mon Sep 17 00:00:00 2001 From: Nguyen Phuoc Sang <47568867+ppupha@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:31:31 +0700 Subject: [PATCH] lint Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- lib/screen/bloc/accounts/accounts_bloc.dart | 2 +- lib/screen/settings/connection/accounts_view.dart | 5 +++-- .../crypto/wallet_detail/linked_wallet_detail_page.dart | 4 +++- lib/util/gesture_constrain_widget.dart | 3 ++- lib/util/int_ext.dart | 3 +-- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/lib/screen/bloc/accounts/accounts_bloc.dart b/lib/screen/bloc/accounts/accounts_bloc.dart index 18385b870..a3c9bc8f5 100644 --- a/lib/screen/bloc/accounts/accounts_bloc.dart +++ b/lib/screen/bloc/accounts/accounts_bloc.dart @@ -60,7 +60,7 @@ class AccountsBloc extends AuBloc { try { final balance = await getAddressBalance(address); addressBalances[address] = balance; - emit( + emit( state.copyWith( addressBalances: Map.from( addressBalances diff --git a/lib/screen/settings/connection/accounts_view.dart b/lib/screen/settings/connection/accounts_view.dart index 1a5e7bdd5..8ae7ec75b 100644 --- a/lib/screen/settings/connection/accounts_view.dart +++ b/lib/screen/settings/connection/accounts_view.dart @@ -101,8 +101,9 @@ class _AccountsViewState extends State { } final address = walletAddresses[index]; return KeepAliveWidget( - key: ValueKey(address.key), - child: _addressCard(context, address),); + key: ValueKey(address.key), + child: _addressCard(context, address), + ); }, ); }, diff --git a/lib/screen/settings/crypto/wallet_detail/linked_wallet_detail_page.dart b/lib/screen/settings/crypto/wallet_detail/linked_wallet_detail_page.dart index 945f4282e..46f5ec833 100644 --- a/lib/screen/settings/crypto/wallet_detail/linked_wallet_detail_page.dart +++ b/lib/screen/settings/crypto/wallet_detail/linked_wallet_detail_page.dart @@ -194,7 +194,9 @@ class _LinkedWalletDetailPageState extends State final balanceInUSD = exchangeRate != null && cryptoBalance != null ? exchangeRate.toUsd( - amount: cryptoBalance, cryptoType: cryptoType,) + amount: cryptoBalance, + cryptoType: cryptoType, + ) : ''; return _balanceSection( context, diff --git a/lib/util/gesture_constrain_widget.dart b/lib/util/gesture_constrain_widget.dart index 345e9867b..572f2b266 100644 --- a/lib/util/gesture_constrain_widget.dart +++ b/lib/util/gesture_constrain_widget.dart @@ -2,7 +2,8 @@ import 'package:flutter/material.dart'; class GestureConstrainWidget extends StatelessWidget { const GestureConstrainWidget({ - required this.child, super.key, + required this.child, + super.key, }); final Widget child; diff --git a/lib/util/int_ext.dart b/lib/util/int_ext.dart index 8e2c9f1c6..4f14e8833 100644 --- a/lib/util/int_ext.dart +++ b/lib/util/int_ext.dart @@ -4,8 +4,7 @@ import 'package:autonomy_flutter/util/xtz_utils.dart'; import 'package:web3dart/web3dart.dart'; extension BigIntExtension on BigInt { - String get toXTZStringValue => - '${XtzAmountFormatter().format(toInt())} XTZ'; + String get toXTZStringValue => '${XtzAmountFormatter().format(toInt())} XTZ'; String get toEthStringValue => EtherAmount.fromBigInt(EtherUnit.wei, this).toEthStringValue;