Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input_widget.dart:321:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null. #323

Closed
hendrikdewilde opened this issue May 20, 2022 · 11 comments

Comments

@hendrikdewilde
Copy link

Describe the bug
/src/flutter/.pub-cache/hosted/pub.dartlang.org/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' ('/src/flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.addPostFrameCallback((timeStamp) {

Package version
intl_phone_number_input: ^0.7.0+2

Flutter version
Flutter 3.0.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision fb57da5 (10 hours ago) • 2022-05-19 15:50:29 -0700
Engine • revision caaafc5604
Tools • Dart 2.17.1 • DevTools 2.12.2

Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.0.1, on Microsoft Windows [Version 10.0.22000.675], locale en-ZA)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.2.0)
[√] Android Studio (version 2021.1)
[√] VS Code (version 1.67.1)
[√] Connected device (3 available)
[√] HTTP Host Availability

• No issues found!

To Reproduce
Steps to reproduce the behavior:

  1. Pub get
  2. Start Project (Run main.dart)

Expected behavior
No "Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null" displayed

Screenshots

** Targeted platforms (please complete the following information):**

  • OS [Android]
  • Web [❌]

Additional context

@alperefesahin
Copy link

Same on iOS. Package needs update...

@NguyenPhatBG
Copy link

Same for me.

@binSaed
Copy link

binSaed commented Jun 9, 2022

  intl_phone_number_input:
    git:
      url: https://github.com/AbdOoSaed/intl_phone_number_input

@darkstarx
Copy link
Contributor

  intl_phone_number_input:
    git:
      url: https://github.com/AbdOoSaed/intl_phone_number_input

@AbdOoSaed make the PR please.

@idamsel
Copy link

idamsel commented Jun 17, 2022

@hendrikdewilde facing same issue.. In my code , this package having latest version intl_phone_number_input: ^0.7.0+2 , yet I am also unable to resolve run time error.

@AbdOoSaed please clarify your comment.

@mwawrusch
Copy link

@iamvaidarbhi he cloned and fixed it in his github, and that references his source vs this till the library is fixed.

@abdullah017
Copy link

Is there any update or solution for this problem?

@SimonH-Zuma
Copy link

SimonH-Zuma commented Jul 18, 2022

Raises the question of how the community at large get pull requests into a public library when the owner seems to have gone AWOL. This library is well used (has 450+ likes on pub dev). Even if we needed 10 independent code reviews at least we could get some progress here (I'd happily provide one of the code reviews).

How can Dart/Flutter progress if devs can't trust 'popular' public libraries not to become stale??

@antoniok90
Copy link

any news about this package?

@tiancaidao
Copy link
Contributor

I created this pull request to fix this issue on Flutter 3.0

#336

Someone approve it?

@bynalab
Copy link
Collaborator

bynalab commented Aug 25, 2022

I created this pull request to fix this issue on Flutter 3.0

#336

Someone approve it?

Hi @tiancaidao, Your PR has been merged. Thanks.
I'm closing this issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests