curtain wizard & bugs fixes

This commit is contained in:
mohammad
2024-10-09 14:58:08 +03:00
parent e0049c0aec
commit 465a2e3108
22 changed files with 158 additions and 117 deletions

View File

@ -7,9 +7,13 @@ class DevicesDefaultSwitch extends StatelessWidget {
{super.key,
required this.switchValue,
required this.action,
required this.on,
required this.off,
this.secondAction});
final bool switchValue;
final String on;
final String off;
final Function action;
final Function? secondAction;
@ -36,7 +40,7 @@ class DevicesDefaultSwitch extends StatelessWidget {
child: Center(
child: BodyMedium(
fontSize: 14,
text: "ON",
text: on,
fontColor: switchValue ? Colors.white : null,
fontWeight: FontWeight.w700,
),
@ -67,7 +71,7 @@ class DevicesDefaultSwitch extends StatelessWidget {
child: Center(
child: BodyMedium(
fontSize: 14,
text: "OFF",
text: off,
fontColor: switchValue ? null : Colors.white,
fontWeight: FontWeight.w700,
),