mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
Update sensitivity function to adjust max value and add image assets; modify dialog logic for sensitivity handling
This commit is contained in:
@ -115,8 +115,11 @@ class _CeilingSensorDialogState extends State<CeilingSensorDialog> {
|
||||
),
|
||||
);
|
||||
final operations = selectedCpsFunctions.getOperationalValues();
|
||||
final isToggleFunction =
|
||||
CeilingSensorHelper.toggleCodes.contains(selectedFunction);
|
||||
final isSensitivityFunction = selectedFunction == 'sensitivity';
|
||||
final isToggleFunction = isSensitivityFunction
|
||||
? widget.dialogType == 'THEN'
|
||||
: CeilingSensorHelper.toggleCodes.contains(selectedFunction);
|
||||
|
||||
return Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
|
@ -63,6 +63,7 @@ class CpsDialogSliderSelector extends StatelessWidget {
|
||||
|
||||
(double, double) get _sliderRange => switch (selectedFunctionData.functionCode) {
|
||||
'moving_speed' => (0, 32),
|
||||
'sensitivity' => (0, 10),
|
||||
'space_static_val' => (0, 255),
|
||||
'space_move_val' => (0, 255),
|
||||
'moving_max_dis' => (0, 10),
|
||||
|
Reference in New Issue
Block a user