mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
20 lines
531 B
Dart
20 lines
531 B
Dart
|
|
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();
|
|
}
|
|
}
|
|
}
|