diff --git a/lib/pages/device_managment/ceiling_sensor/view/ceiling_sensor_controls.dart b/lib/pages/device_managment/ceiling_sensor/view/ceiling_sensor_controls.dart index 3b79303b..fde4efc4 100644 --- a/lib/pages/device_managment/ceiling_sensor/view/ceiling_sensor_controls.dart +++ b/lib/pages/device_managment/ceiling_sensor/view/ceiling_sensor_controls.dart @@ -39,13 +39,7 @@ class CeilingSensorControls extends StatelessWidget } else if (state is CeilingReportsState) { return ReportsTable( report: state.deviceReport, - onRowTap: (index) { - // final entry = state.deviceReport.data![index]; - // context.read().add( - // ShowCeilingDescriptionEvent( - // description: entry['description']), - // ); - }, + onRowTap: (index) {}, onClose: () { context .read() diff --git a/lib/pages/device_managment/wall_sensor/view/wall_sensor_conrtols.dart b/lib/pages/device_managment/wall_sensor/view/wall_sensor_conrtols.dart index c83b4768..068cb27d 100644 --- a/lib/pages/device_managment/wall_sensor/view/wall_sensor_conrtols.dart +++ b/lib/pages/device_managment/wall_sensor/view/wall_sensor_conrtols.dart @@ -171,120 +171,4 @@ class WallSensorControls extends StatelessWidget with HelperResponsiveLayout { ], ); } - - // BlocBuilder( - // 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().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().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().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().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')); - // } - // }, - // ), - // ); }