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';
class StepsCubit extends Cubit<StepsState> {
StepsCubit() : super(StepsInitial());
StepsCubit() : super(StepOneState());
void initDialogValue() {
emit(StepOneState());

View File

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

View File

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

View File

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

View File

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