Added sign up screen and model

This commit is contained in:
Abdullah Alassaf
2024-05-23 14:08:40 +03:00
parent 0eea5242e1
commit f7db91f212
6 changed files with 285 additions and 12 deletions
@@ -53,6 +53,7 @@ class _DoorLockButtonState extends State<DoorLockButton> with SingleTickerProvid
// }
BlocProvider.of<SmartDoorBloc>(context)
.add(UpdateLockEvent(value: smartDoorModel.normalOpenSwitch));
_animationController.reverse();
} else if (_animation.status == AnimationStatus.dismissed) {
// if (widget.doorLock.status
// .firstWhere((element) => element.code == 'normal_open_switch')
@@ -98,11 +99,11 @@ class _DoorLockButtonState extends State<DoorLockButton> with SingleTickerProvid
}
},
onTapUp: (details) {
if (_animationController.status == AnimationStatus.forward) {
_animationController.reverse();
} else if (_animationController.status == AnimationStatus.reverse) {
_animationController.forward();
}
// if (_animationController.status == AnimationStatus.forward) {
// _animationController.reverse();
// } else if (_animationController.status == AnimationStatus.reverse) {
// _animationController.forward();
// }
},
child: Container(
width: context.width * 06,