diff --git a/lib/ui/setup_page.dart b/lib/ui/setup_page.dart index 0c549cf0a..f30061eb0 100644 --- a/lib/ui/setup_page.dart +++ b/lib/ui/setup_page.dart @@ -156,9 +156,9 @@ class _AnimatedSearchIconWidgetState extends State AnimationController(duration: const Duration(seconds: 1), vsync: this); _animation = Tween(begin: 100, end: 200).animate(_controller) ..addListener(() { - setState(() { - // The state that has changed here is the animation object’s value. - }); + if (mounted) { + setState(() {}); + } }) ..addStatusListener((status) { if (status == AnimationStatus.completed) {