jifalops / datetime_picker_formfield

A Flutter widget that wraps a TextFormField and integrates the date and/or time picker dialogs.
MIT License
186 stars 101 forks source link

Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null #125

Closed ztrag closed 2 years ago

ztrag commented 2 years ago

After flutter upgrade to 3.0.0 the following warning pops up:

./../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/datetime_picker_formfield-2.0.0/lib/datetime_picker_formfield.dart:306:20: Warning: Operand of null-aware
operation '!' has type 'WidgetsBinding' which excludes null.
 - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../../development/flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.addPostFrameCallback((_) {
rhernandez-itemsoft commented 2 years ago

This error continues

image image image

ammarhemani commented 2 years ago

Facing the same error

mohhamad-esmaili commented 2 years ago

same here ;/

ozhankucuk commented 2 years ago

same error