requested cubits

This commit is contained in:
Rafeek-Khoudare
2025-07-21 16:37:46 +03:00
parent 983040135f
commit fb506e16c1
5 changed files with 2 additions and 7 deletions

View File

@ -4,7 +4,7 @@ import 'package:equatable/equatable.dart';
part 'steps_state.dart'; part 'steps_state.dart';
class StepsCubit extends Cubit<StepsState> { class StepsCubit extends Cubit<StepsState> {
StepsCubit() : super(StepsInitial()); StepsCubit() : super(StepOneState());
void initDialogValue() { void initDialogValue() {
emit(StepOneState()); emit(StepOneState());

View File

@ -7,9 +7,6 @@ sealed class StepsState extends Equatable {
List<Object> get props => []; List<Object> get props => [];
} }
final class StepsInitial extends StepsState {}
final class StepOneState extends StepsState {} final class StepOneState extends StepsState {}
final class StepTwoState extends StepsState {} final class StepTwoState extends StepsState {}

View File

@ -4,7 +4,7 @@ import 'package:equatable/equatable.dart';
part 'toggle_points_switch_state.dart'; part 'toggle_points_switch_state.dart';
class TogglePointsSwitchCubit extends Cubit<TogglePointsSwitchState> { class TogglePointsSwitchCubit extends Cubit<TogglePointsSwitchState> {
TogglePointsSwitchCubit() : super(TogglePointsSwitchInitial()); TogglePointsSwitchCubit() : super(UnActivatePointsSwitch());
void activateSwitch() { void activateSwitch() {
emit(ActivatePointsSwitch()); emit(ActivatePointsSwitch());

View File

@ -7,7 +7,6 @@ sealed class TogglePointsSwitchState extends Equatable {
List<Object> get props => []; List<Object> get props => [];
} }
final class TogglePointsSwitchInitial extends TogglePointsSwitchState {}
class ActivatePointsSwitch extends TogglePointsSwitchState {} class ActivatePointsSwitch extends TogglePointsSwitchState {}

View File

@ -25,7 +25,6 @@ class DetailsStepsWidget extends StatelessWidget {
pointsController: pointsController, pointsController: pointsController,
editingBookableSpace: editingBookableSpace, editingBookableSpace: editingBookableSpace,
), ),
StepsInitial() => const SizedBox(),
}; };
}), }),
); );