mirror of
https://github.com/SyncrowIOT/web.git
synced 2026-10-23 11:57:55 +00:00
add ac child unlock
This commit is contained in:
@@ -68,14 +68,15 @@ class AcDeviceControl extends StatelessWidget with HelperResponsiveLayout {
|
||||
code: 'child_lock',
|
||||
deviceId: device.uuid!,
|
||||
description: 'Child Lock',
|
||||
icon: Assets.childLock,
|
||||
icon:
|
||||
state.status.childLock ? Assets.unlock : Assets.childLock,
|
||||
),
|
||||
],
|
||||
);
|
||||
} else if (state is AcsLoadingState) {
|
||||
return const Center(child: CircularProgressIndicator());
|
||||
} else {
|
||||
return const Center(child: Text('Error fetching status'));
|
||||
return const Center(child: Text('Error fetching status'));
|
||||
}
|
||||
},
|
||||
),
|
||||
|
||||
@@ -125,4 +125,5 @@ class Assets {
|
||||
static const String parlour = 'assets/icons/parlour.svg';
|
||||
static const String grid = "assets/images/grid.svg";
|
||||
static const String curtainIcon = "assets/images/curtain.svg";
|
||||
static const String unlock = 'assets/icons/unlock_ic.svg';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user