Skip to content

Commit 60fce80

Browse files
committed
style(trezor): apply dart format
Fixes CI format-check failures on the trezor operation base cubit and the three trezor UI screens.
1 parent a96e7f2 commit 60fce80

4 files changed

Lines changed: 14 additions & 13 deletions

File tree

lib/features/trezor/presentation/trezor_operation_base_cubit.dart

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,7 @@ abstract class TrezorOperationBaseCubit<T>
9191
// dropped by the epoch checks below.
9292
final myEpoch = ++_operationEpoch;
9393

94-
emit(
95-
state.copyWith(
96-
status: TrezorOperationStatus.launching,
97-
error: null,
98-
),
99-
);
94+
emit(state.copyWith(status: TrezorOperationStatus.launching, error: null));
10095

10196
try {
10297
if (isClosed) return;
@@ -119,9 +114,7 @@ abstract class TrezorOperationBaseCubit<T>
119114
if (isClosed || _operationEpoch != myEpoch) return;
120115
_cancelGrace();
121116
log.warning('Trezor operation failed', error: e);
122-
emit(
123-
state.copyWith(status: TrezorOperationStatus.error, error: e),
124-
);
117+
emit(state.copyWith(status: TrezorOperationStatus.error, error: e));
125118
rethrow;
126119
} catch (e, t) {
127120
log.severe(
@@ -164,5 +157,4 @@ abstract class TrezorOperationBaseCubit<T>
164157
WidgetsBinding.instance.removeObserver(this);
165158
return super.close();
166159
}
167-
168160
}

lib/features/trezor/ui/screens/trezor_import_landing_screen.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,10 @@ class __TrezorImportLandingViewState extends State<_TrezorImportLandingView> {
238238

239239
// ───────────────────────── Helpers ─────────────────────────
240240

241-
String _getMainTextForState(BuildContext context, TrezorOperationState state) {
241+
String _getMainTextForState(
242+
BuildContext context,
243+
TrezorOperationState state,
244+
) {
242245
if (state.isLaunching || state.isWaiting) {
243246
return context.loc.trezorImportWaitingTitle;
244247
}

lib/features/trezor/ui/screens/trezor_sign_transaction_screen.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@ class _SignTransactionView extends StatelessWidget {
160160

161161
// ───────────────────────── Helpers ─────────────────────────
162162

163-
String _getMainTextForState(BuildContext context, TrezorOperationState state) {
163+
String _getMainTextForState(
164+
BuildContext context,
165+
TrezorOperationState state,
166+
) {
164167
if (state.isLaunching || state.isWaiting) {
165168
return context.loc.trezorSignWaitingTitle;
166169
}

lib/features/trezor/ui/screens/trezor_verify_address_screen.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,10 @@ class _VerifyAddressView extends StatelessWidget {
222222

223223
// ───────────────────────── Helpers ─────────────────────────
224224

225-
String _getMainTextForState(BuildContext context, TrezorOperationState state) {
225+
String _getMainTextForState(
226+
BuildContext context,
227+
TrezorOperationState state,
228+
) {
226229
if (state.isLaunching || state.isWaiting) {
227230
return context.loc.trezorVerifyWaitingTitle;
228231
}

0 commit comments

Comments
 (0)