mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
formatted all files.
This commit is contained in:
@ -45,7 +45,8 @@ class CpsDialogValueSelector extends StatelessWidget {
|
||||
operationName: operationName,
|
||||
value: operation.value,
|
||||
condition: selectedFunctionData?.condition,
|
||||
valueDescription: selectedFunctionData?.valueDescription,
|
||||
valueDescription:
|
||||
selectedFunctionData?.valueDescription,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
@ -57,7 +57,7 @@ class CpsFunctionsList extends StatelessWidget {
|
||||
'moving_max_dis',
|
||||
'moving_range',
|
||||
'presence_range',
|
||||
if (dialogType == "IF") 'sensitivity',
|
||||
if (dialogType == 'IF') 'sensitivity',
|
||||
],
|
||||
);
|
||||
});
|
||||
|
@ -1,5 +1,6 @@
|
||||
abstract final class CpsSliderHelpers {
|
||||
static (double min, double max, double step) mappedRange(String functionCode) {
|
||||
static (double min, double max, double step) mappedRange(
|
||||
String functionCode) {
|
||||
final (defaultMin, defaultMax) = sliderRange(functionCode);
|
||||
final defaultDivdidend = dividendOfRange(functionCode);
|
||||
return switch (functionCode) {
|
||||
@ -62,7 +63,10 @@ abstract final class CpsSliderHelpers {
|
||||
'perceptual_boundary' ||
|
||||
'moving_boundary' =>
|
||||
'M',
|
||||
'moving_rigger_time' || 'moving_static_time' || 'none_body_time' => 'sec',
|
||||
'moving_rigger_time' ||
|
||||
'moving_static_time' ||
|
||||
'none_body_time' =>
|
||||
'sec',
|
||||
_ => '',
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user