feat:Order item created

This commit is contained in:
jahongireshonqulov
2025-10-24 20:43:05 +05:00
parent 30f190aab9
commit 7e9fbd2cf3
9 changed files with 140 additions and 10 deletions

View File

@@ -0,0 +1,20 @@
import 'package:food_delivery_client/food_delivery_client.dart';
part 'basket_event.dart';
part 'basket_state.dart';
part 'basket_bloc.freezed.dart';
@injectable
class BasketBloc extends Bloc<BasketEvent, BasketState> {
BasketBloc() : super(const BasketState()) {
on<_Started>(_onStarted);
}
_onStarted(_Started event, Emitter<BasketState> emit) async {
emit(state.copyWith(status: RequestStatus.loading));
await Future.delayed(TimeDelayConst.duration3);
emit(state.copyWith(status: RequestStatus.loaded));
}
}