mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-16 01:56:19 +00:00
curtain wizard & bugs fixes
This commit is contained in:
@ -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,
|
||||
),
|
||||
|
Reference in New Issue
Block a user