mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-08-25 14:29:41 +00:00
requested cubits
This commit is contained in:
@ -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());
|
||||||
|
@ -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 {}
|
||||||
|
|
||||||
|
@ -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());
|
||||||
|
@ -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 {}
|
||||||
|
|
||||||
|
@ -25,7 +25,6 @@ class DetailsStepsWidget extends StatelessWidget {
|
|||||||
pointsController: pointsController,
|
pointsController: pointsController,
|
||||||
editingBookableSpace: editingBookableSpace,
|
editingBookableSpace: editingBookableSpace,
|
||||||
),
|
),
|
||||||
StepsInitial() => const SizedBox(),
|
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user