Skip to content

Commit

Permalink
fixes controller handling
Browse files Browse the repository at this point in the history
  • Loading branch information
maeddin committed Mar 17, 2022
1 parent dd051f4 commit b20a61b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/action_slider_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,9 @@ class _ActionSliderState extends State<ActionSlider>
_localController?.dispose();
oldWidget.controller?.removeListener(_onModeChange);
if (widget.controller == null) {
_localController = null;
} else if (oldWidget.controller == null) {
_localController = ActionSliderController();
} else {
_localController = null;
}
_controller.addListener(_onModeChange);
}
Expand Down

0 comments on commit b20a61b

Please sign in to comment.