Skip to content

Commit

Permalink
Missing mixed->checked checkbox animation (#606)
Browse files Browse the repository at this point in the history
Fixes #603
  • Loading branch information
Jupi007 committed Feb 8, 2023
1 parent 7dde408 commit 94bf90f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/src/widgets/yaru_togglable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,8 @@ abstract class YaruTogglableState<S extends YaruTogglable> extends State<S>
oldChecked = oldWidget.checked;

if (widget.tristate) {
if (widget.checked == null) {
if (widget.checked == null || widget.checked == true) {
positionController.value = 0.0;
}
if (widget.checked ?? true) {
positionController.forward();
} else {
positionController.reverse();
Expand Down

0 comments on commit 94bf90f

Please sign in to comment.