Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Matej-Hlatky committed Nov 17, 2024
1 parent a586e8b commit 3fe32a4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
10 changes: 5 additions & 5 deletions lib/bloc/present_signed_document_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ class PresentSignedDocumentCubit extends Cubit<PresentSignedDocumentState> {

final SignDocumentResponseBody signedDocument;

PresentSignedDocumentCubit(
{required AppService appService,
@factoryParam required this.signedDocument,
@factoryParam required DocumentSigningType signingType})
: _appService = appService,
PresentSignedDocumentCubit({
required AppService appService,
@factoryParam required this.signedDocument,
@factoryParam required DocumentSigningType signingType,
}) : _appService = appService,
super(
signingType == DocumentSigningType.local
? const PresentSignedDocumentInitialState()
Expand Down
7 changes: 2 additions & 5 deletions lib/bloc/present_signed_document_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import 'dart:io' show File;

import 'package:flutter/foundation.dart';

import 'present_signed_document_cubit.dart';

/// State for [PresentSignedDocumentCubit].
@immutable
sealed class PresentSignedDocumentState {
Expand Down Expand Up @@ -59,9 +61,4 @@ class PresentSignedLocalDocumentSuccessState
class PresentSignedRemoteDocumentSuccessState
extends PresentSignedDocumentState {
const PresentSignedRemoteDocumentSuccessState();

@override
String toString() {
return "$runtimeType()";
}
}
1 change: 0 additions & 1 deletion lib/ui/fragment/document_validation_fragment.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ class _DocumentValidationFragmentState

Widget _buildContent(BuildContext context, DocumentValidationState state) {
if (_hidden) {
// TODO Animate height from 100% to 0
return const SizedBox.shrink();
}

Expand Down

0 comments on commit 3fe32a4

Please sign in to comment.