mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-11-28 00:24:55 +00:00
changing ac bloc
This commit is contained in:
@ -1,19 +0,0 @@
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:syncrow_web/pages/device_managment/ac/control_list/ac_toggle.dart';
|
||||
|
||||
mixin ACHelper {
|
||||
Widget ACHelperControlWidgets(
|
||||
{required bool value, required String code, required String deviceId}) {
|
||||
switch (code) {
|
||||
case 'switch_1':
|
||||
return AcToggle(value: value, code: code, deviceId: deviceId);
|
||||
case 'switch_2':
|
||||
return SizedBox();
|
||||
case 'switch_3':
|
||||
return SizedBox();
|
||||
default:
|
||||
return const SizedBox();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user