mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
Remove unused variables from CeilingSensorDialog to streamline state management
This commit is contained in:
@ -54,15 +54,6 @@ class _CeilingSensorDialogState extends State<CeilingSensorDialog> {
|
|||||||
content: BlocBuilder<FunctionBloc, FunctionBlocState>(
|
content: BlocBuilder<FunctionBloc, FunctionBlocState>(
|
||||||
builder: (context, state) {
|
builder: (context, state) {
|
||||||
final selectedFunction = state.selectedFunction;
|
final selectedFunction = state.selectedFunction;
|
||||||
final selectedOperationName = state.selectedOperationName;
|
|
||||||
final selectedFunctionData = state.addedFunctions
|
|
||||||
.firstWhere((f) => f.functionCode == selectedFunction,
|
|
||||||
orElse: () => DeviceFunctionData(
|
|
||||||
entityId: '',
|
|
||||||
functionCode: selectedFunction ?? '',
|
|
||||||
operationName: '',
|
|
||||||
value: null,
|
|
||||||
));
|
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
width: selectedFunction != null ? 600 : 360,
|
width: selectedFunction != null ? 600 : 360,
|
||||||
|
Reference in New Issue
Block a user