peng8350 / flutter_pulltorefresh

a widget provided to the flutter scroll component drop-down refresh and pull up load.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

nEdAy opened this issue · comments

Describe the bug

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

Version (please complete the following information):

Flutter Version: Flutter 3.0.0 • channel stable
OS: Android
flutter_pulltorefresh Version : 2.0.0
Additional context
Add any other context about the problem here.

The same here:

`

  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../Documents/flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.addPostFrameCallback((_) {
    ^
    ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/pull_to_refresh-2.0.0/lib/src/smart_refresher.dart:765:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../Documents/flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.addPostFrameCallback((_) {
    ^
    ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/pull_to_refresh-2.0.0/lib/src/smart_refresher.dart:788:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../Documents/flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.addPostFrameCallback((_) {
    ^
    ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/pull_to_refresh-2.0.0/lib/src/smart_refresher.dart:796:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.

`

i would categorize this project to abandonware

same

same issue

same issue..

commented

Same issue, can u merge the PR to fixed it ?

commented

same issue

same issue

same issue

Pull to Refresh

pull_to_refresh:
git:
url: https://github.com/miquelbeltran/flutter_pulltorefresh
ref: 6d7fbdd

same issue

same issue

Same issue

pull_to_refresh_flutter3: ^2.0.1

Friends the solution is to use:
Good luck!