mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-08-25 15:39:41 +00:00
remove comments
This commit is contained in:
@ -39,13 +39,7 @@ class CeilingSensorControls extends StatelessWidget
|
|||||||
} else if (state is CeilingReportsState) {
|
} else if (state is CeilingReportsState) {
|
||||||
return ReportsTable(
|
return ReportsTable(
|
||||||
report: state.deviceReport,
|
report: state.deviceReport,
|
||||||
onRowTap: (index) {
|
onRowTap: (index) {},
|
||||||
// final entry = state.deviceReport.data![index];
|
|
||||||
// context.read<CeilingSensorBloc>().add(
|
|
||||||
// ShowCeilingDescriptionEvent(
|
|
||||||
// description: entry['description']),
|
|
||||||
// );
|
|
||||||
},
|
|
||||||
onClose: () {
|
onClose: () {
|
||||||
context
|
context
|
||||||
.read<CeilingSensorBloc>()
|
.read<CeilingSensorBloc>()
|
||||||
|
@ -171,120 +171,4 @@ class WallSensorControls extends StatelessWidget with HelperResponsiveLayout {
|
|||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// BlocBuilder<WallSensorBloc, WallSensorState>(
|
|
||||||
// builder: (context, state) {
|
|
||||||
// if (state is WallSensorLoadingInitialState) {
|
|
||||||
// return const Center(child: CircularProgressIndicator());
|
|
||||||
// } else if (state is WallSensorUpdateState) {
|
|
||||||
// return
|
|
||||||
// GridView(
|
|
||||||
// padding: const EdgeInsets.symmetric(horizontal: 50),
|
|
||||||
// shrinkWrap: true,
|
|
||||||
// physics: const NeverScrollableScrollPhysics(),
|
|
||||||
// gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
|
||||||
// crossAxisCount: isLarge
|
|
||||||
// ? 3
|
|
||||||
// : isMedium
|
|
||||||
// ? 2
|
|
||||||
// : 1,
|
|
||||||
// mainAxisExtent: 133,
|
|
||||||
// crossAxisSpacing: 12,
|
|
||||||
// mainAxisSpacing: 12,
|
|
||||||
// ),
|
|
||||||
// children: [
|
|
||||||
// PresenceState(
|
|
||||||
// value: state.wallSensorModel.presenceState,
|
|
||||||
// ),
|
|
||||||
// PresenceDisplayValue(
|
|
||||||
// value: state.wallSensorModel.presenceTime.toString(),
|
|
||||||
// postfix: 'min',
|
|
||||||
// description: 'Presence Time',
|
|
||||||
// ),
|
|
||||||
// PresenceDisplayValue(
|
|
||||||
// value: state.wallSensorModel.currentDistance.toString(),
|
|
||||||
// postfix: 'cm',
|
|
||||||
// description: 'Current Distance',
|
|
||||||
// ),
|
|
||||||
// PresenceDisplayValue(
|
|
||||||
// value: state.wallSensorModel.illuminance.toString(),
|
|
||||||
// postfix: 'Lux',
|
|
||||||
// description: 'Illuminance Value',
|
|
||||||
// ),
|
|
||||||
// PresenceUpdateData(
|
|
||||||
// value: state.wallSensorModel.motionSensitivity.toDouble(),
|
|
||||||
// title: 'Motion Detection Sensitivity:',
|
|
||||||
// minValue: 1,
|
|
||||||
// maxValue: 5,
|
|
||||||
// steps: 1,
|
|
||||||
// action: (int value) {
|
|
||||||
// context.read<WallSensorBloc>().add(
|
|
||||||
// WallSensorChangeValueEvent(
|
|
||||||
// code: 'motion_sensitivity_value',
|
|
||||||
// value: value,
|
|
||||||
// ),
|
|
||||||
// );
|
|
||||||
// },
|
|
||||||
// ),
|
|
||||||
// PresenceUpdateData(
|
|
||||||
// value: state.wallSensorModel.motionlessSensitivity.toDouble(),
|
|
||||||
// title: 'Motionless Detection Sensitivity:',
|
|
||||||
// minValue: 1,
|
|
||||||
// maxValue: 5,
|
|
||||||
// steps: 1,
|
|
||||||
// action: (int value) => context.read<WallSensorBloc>().add(
|
|
||||||
// WallSensorChangeValueEvent(
|
|
||||||
// code: 'motionless_sensitivity',
|
|
||||||
// value: value,
|
|
||||||
// ),
|
|
||||||
// ),
|
|
||||||
// ),
|
|
||||||
// PresenceUpdateData(
|
|
||||||
// value: state.wallSensorModel.noBodyTime.toDouble(),
|
|
||||||
// title: 'Nobody Time:',
|
|
||||||
// minValue: 10,
|
|
||||||
// maxValue: 10000,
|
|
||||||
// steps: 1,
|
|
||||||
// description: 'hr',
|
|
||||||
// action: (int value) =>
|
|
||||||
// context.read<WallSensorBloc>().add(WallSensorChangeValueEvent(
|
|
||||||
// code: 'no_one_time',
|
|
||||||
// value: value,
|
|
||||||
// ))),
|
|
||||||
// PresenceUpdateData(
|
|
||||||
// value: state.wallSensorModel.farDetection.toDouble(),
|
|
||||||
// title: 'Far Detection:',
|
|
||||||
// minValue: 75,
|
|
||||||
// maxValue: 600,
|
|
||||||
// steps: 75,
|
|
||||||
// description: 'cm',
|
|
||||||
// action: (int value) => context.read<WallSensorBloc>().add(
|
|
||||||
// WallSensorChangeValueEvent(
|
|
||||||
// code: 'far_detection',
|
|
||||||
// value: value,
|
|
||||||
// ),
|
|
||||||
// ),
|
|
||||||
// ),
|
|
||||||
// GestureDetector(
|
|
||||||
// onTap: () {},
|
|
||||||
// child: const PresenceStaticWidget(
|
|
||||||
// icon: Assets.illuminanceRecordIcon,
|
|
||||||
// description: 'Illuminance Record',
|
|
||||||
// ),
|
|
||||||
// ),
|
|
||||||
// GestureDetector(
|
|
||||||
// onTap: () {},
|
|
||||||
// child: const PresenceStaticWidget(
|
|
||||||
// icon: Assets.presenceRecordIcon,
|
|
||||||
// description: 'Presence Record',
|
|
||||||
// ),
|
|
||||||
// ),
|
|
||||||
// ],
|
|
||||||
// );
|
|
||||||
// } else {
|
|
||||||
// return const Center(child: Text('Error fetching status'));
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
// ),
|
|
||||||
// );
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user