mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-08-24 20:22:27 +00:00
requested cubits
This commit is contained in:
@ -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());
|
||||
|
@ -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 {}
|
||||
|
||||
|
@ -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());
|
||||
|
@ -7,7 +7,6 @@ sealed class TogglePointsSwitchState extends Equatable {
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
final class TogglePointsSwitchInitial extends TogglePointsSwitchState {}
|
||||
|
||||
class ActivatePointsSwitch extends TogglePointsSwitchState {}
|
||||
|
||||
|
@ -25,7 +25,6 @@ class DetailsStepsWidget extends StatelessWidget {
|
||||
pointsController: pointsController,
|
||||
editingBookableSpace: editingBookableSpace,
|
||||
),
|
||||
StepsInitial() => const SizedBox(),
|
||||
};
|
||||
}),
|
||||
);
|
||||
|
Reference in New Issue
Block a user