Skip to content

Commit

Permalink
refactor: Correct loading in after setting new url
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Aug 29, 2023
1 parent 38acd7c commit 46ba78f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,12 @@ class QRCodeScanCubit extends Cubit<QRCodeScanState> {

final String newUrl = '${state.uri!}&$queryString';

emit(state.copyWith(uri: Uri.parse(newUrl)));
emit(
state.copyWith(
uri: Uri.parse(newUrl),
qrScanStatus: QrScanStatus.loading,
),
);
log.i('uri - $newUrl');
} else {
responseType = state.uri?.queryParameters['response_type'] ?? '';
Expand Down

0 comments on commit 46ba78f

Please sign in to comment.