diff --git a/lib/another_xlider.dart b/lib/another_xlider.dart index 7403219..5cf325e 100644 --- a/lib/another_xlider.dart +++ b/lib/another_xlider.dart @@ -438,7 +438,7 @@ class FlutterSliderState extends State parent: _rightTooltipAnimationController, curve: Curves.fastOutSlowIn)); - WidgetsBinding.instance?.addPostFrameCallback((_) { + WidgetsBinding.instance.addPostFrameCallback((_) { if (!mounted) { return; }