From 6dbae3fd0485caf0832a19f821f2d8e682183912 Mon Sep 17 00:00:00 2001 From: zackmountassir <39174817+zackmountassir@users.noreply.github.com> Date: Tue, 13 Sep 2022 14:34:11 +0200 Subject: [PATCH] Update multi_select_chip_field.dart In flutter 3 WidgetsBinding excludes null Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null --- lib/chip_field/multi_select_chip_field.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chip_field/multi_select_chip_field.dart b/lib/chip_field/multi_select_chip_field.dart index 1f420ce..1954d4e 100644 --- a/lib/chip_field/multi_select_chip_field.dart +++ b/lib/chip_field/multi_select_chip_field.dart @@ -270,7 +270,7 @@ class __MultiSelectChipFieldViewState _selectedValues.addAll(widget.initialValue!); } if (widget.scrollControl != null && widget.scroll) - WidgetsBinding.instance!.addPostFrameCallback((_) => _scrollToPosition()); + WidgetsBinding.instance.addPostFrameCallback((_) => _scrollToPosition()); } _scrollToPosition() {