Skip to content

Commit

Permalink
feat: arc ring color matches lock state color specs
Browse files Browse the repository at this point in the history
  • Loading branch information
ses110 committed May 20, 2021
1 parent cd33d76 commit a02e68b
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions lib/components/lock_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,20 @@ class LockWidget extends StatelessWidget {
),
Center(
child: Arc(
centerWidget: InkWell(
child: getLockStateIcon(lockProvider),
onTap: () {
bool setLock = !lockProvider.isLocked;
lockProvider.setLockUnlockAction(
lockProvider?.deviceDetail?.id, setLock);
},
),
centerWidget: SizedBox(
width: 200,
height: 200,
child: InkWell(
child: getLockStateIcon(lockProvider),
onTap: () {
bool setLock = !lockProvider.isLocked;
lockProvider.setLockUnlockAction(
lockProvider?.deviceDetail?.id, setLock);
},
)),
color: lockProvider.isLocked
? WidgetStyleConstants.deviceDetailIconColorActive
: WidgetStyleConstants.deviceDetailIconColorInactive,
initialValue: 0.0,
maxValue: 1.0,
onFinalSetPoint: (double value) {},
Expand Down

0 comments on commit a02e68b

Please sign in to comment.