forked from eatvio/eatvio_app
21 lines
714 B
Dart
21 lines
714 B
Dart
import 'package:equatable/equatable.dart';
|
|
import 'package:flutter/material.dart';
|
|
import '/core/app_export.dart';
|
|
import 'package:eatvio_app/presentation/schedule_screen/models/schedule_model.dart';
|
|
part 'schedule_event.dart';
|
|
part 'schedule_state.dart';
|
|
|
|
/// A bloc that manages the state of a Schedule according to the event that is dispatched to it.
|
|
class ScheduleBloc extends Bloc<ScheduleEvent, ScheduleState> {
|
|
ScheduleBloc(ScheduleState initialState) : super(initialState) {
|
|
on<ScheduleInitialEvent>(_onInitialize);
|
|
}
|
|
|
|
_onInitialize(
|
|
ScheduleInitialEvent event,
|
|
Emitter<ScheduleState> emit,
|
|
) async {
|
|
emit(state.copyWith(inputPlaceholderController: TextEditingController()));
|
|
}
|
|
}
|