Skip to content

Commit

Permalink
Merge pull request #1 from YuiHrsw/main
Browse files Browse the repository at this point in the history
override dispose to avoid exception when popping pages
  • Loading branch information
HannesGitH authored Feb 10, 2024
2 parents 1bc549f + 3cb3be0 commit e312512
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/slider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ class _SquigglySliderState extends State<SquigglySlider>
}
}

@override
void dispose() {
phaseController.dispose();
super.dispose();
}

@override
Widget build(BuildContext context) => SliderTheme(
data: SliderTheme.of(context).copyWith(
Expand Down

0 comments on commit e312512

Please sign in to comment.