From e022d5f1d87beb23d6220b2afd59ecbed58b0baa Mon Sep 17 00:00:00 2001 From: jstorch72 <14082442+jstorch72@users.noreply.github.com> Date: Wed, 29 Jun 2022 12:37:51 -0600 Subject: [PATCH] Update WidgetsBinding.instance to remove "Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null." warn for flutter 3.0 --- lib/another_xlider.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }