Browse Source

fix: loading state

pull/25/head
AmirrezaChegini 5 days ago
parent
commit
accdc78fbe
  1. 2
      lib/features/download/presentation/bloc/download_bloc.dart

2
lib/features/download/presentation/bloc/download_bloc.dart

@ -49,6 +49,7 @@ class DownloadBloc extends Bloc<DownloadEvent, DownloadState> {
GetImagesEvent event,
Emitter<DownloadState> emit,
) async {
emit(state.copyWith(getFilesStatus: BaseInit()));
await _getImagesUseCase(NoParams()).then((value) {
value.fold(
(data) {
@ -65,7 +66,6 @@ class DownloadBloc extends Bloc<DownloadEvent, DownloadState> {
GetAudiosEvent event,
Emitter<DownloadState> emit,
) async {
emit(state.copyWith(getFilesStatus: BaseInit()));
await _getAudiosUseCase(NoParams()).then((value) {
value.fold(
(data) async {

Loading…
Cancel
Save