flutter_typeahead
flutter_typeahead copied to clipboard
Warnings with Flutter 3.0
I just upgraded Flutter to 3.0 and now there's some warnings from this wonderful package. 😊
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_typeahead-3.2.5/lib/src/flutter_typeahead.dart:801:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/binding.dart').
package:flutter/…/widgets/binding.dart:1
WidgetsBinding.instance!.addPostFrameCallback((duration) {
^
I guess, It's related to this. Library needs to excludes null aware operators for WigetsBinding
https://github.com/AbdulRahmanAlHamali/flutter_typeahead/pull/393