From 46ba78f85e474b0c59d872060a8544effa01e916 Mon Sep 17 00:00:00 2001 From: Bibash Shrestha Date: Tue, 29 Aug 2023 12:17:57 +0545 Subject: [PATCH] refactor: Correct loading in after setting new url --- .../qr_code/qr_code_scan/cubit/qr_code_scan_cubit.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/dashboard/qr_code/qr_code_scan/cubit/qr_code_scan_cubit.dart b/lib/dashboard/qr_code/qr_code_scan/cubit/qr_code_scan_cubit.dart index 552ea6dca..02823e865 100644 --- a/lib/dashboard/qr_code/qr_code_scan/cubit/qr_code_scan_cubit.dart +++ b/lib/dashboard/qr_code/qr_code_scan/cubit/qr_code_scan_cubit.dart @@ -318,7 +318,12 @@ class QRCodeScanCubit extends Cubit { 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'] ?? '';