natintosh / intl_phone_number_input

MIT License
166 stars 510 forks source link

Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null. #335

Closed umutcoskun closed 2 years ago

umutcoskun commented 2 years ago

Describe the bug

intl_phone_number_input-0.7.0+2/lib/src/widgets/input_widget.dart:321:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
 - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../Public/flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.addPostFrameCallback((timeStamp) {
                   ^

Package version 0.7.0+2

Flutter version 3.0.5

To Reproduce Just include and use the library.

Expected behavior No errors throwed from the library.

Targeted platforms:

SimonH-Zuma commented 2 years ago

Duplicate of #323

bynalab commented 2 years ago

Closing this issue now has #323 has been addressed and merged.