flutter_typeahead icon indicating copy to clipboard operation
flutter_typeahead copied to clipboard

Warnings with Flutter 3.0

Open C1rdec opened this issue 2 years ago • 2 comments

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) {
                   ^

C1rdec avatar May 12 '22 12:05 C1rdec

I guess, It's related to this. Library needs to excludes null aware operators for WigetsBinding

plabon avatar May 12 '22 12:05 plabon

https://github.com/AbdulRahmanAlHamali/flutter_typeahead/pull/393

C1rdec avatar May 12 '22 12:05 C1rdec