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

Warnings found when building the app and Flutter upgraded to 3.0

Ahmad-Hamwi opened this issue · comments

These warning shows in red when building the app
And shows in grey when using the --verbose flag:

[ +903 ms] ../../Library/Flutter/.pub-cache/hosted/pub.dartlang.org/pull_to_refresh-2.0.0/lib/src/smart_refresher.dart:513:22: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
[        ]  - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../Library/Flutter/packages/flutter/lib/src/widgets/binding.dart').
[        ]       WidgetsBinding.instance!.addPostFrameCallback((_) {
[        ]                      ^
[        ] ../../Library/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' ('../../Library/Flutter/packages/flutter/lib/src/widgets/binding.dart').
[        ]     WidgetsBinding.instance!.addPostFrameCallback((_) {
[        ]                    ^
[        ] ../../Library/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' ('../../Library/Flutter/packages/flutter/lib/src/widgets/binding.dart').
[        ]     WidgetsBinding.instance!.addPostFrameCallback((_) {
[        ]                    ^
[        ] ../../Library/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.
[        ]  - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../Library/Flutter/packages/flutter/lib/src/widgets/binding.dart').
[        ]     WidgetsBinding.instance!.addPostFrameCallback((_) {
[        ]                    ^
[        ] ../../Library/Flutter/.pub-cache/hosted/pub.dartlang.org/pull_to_refresh-2.0.0/lib/src/smart_refresher.dart:803:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
[        ]  - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../Library/Flutter/packages/flutter/lib/src/widgets/binding.dart').
[        ]     WidgetsBinding.instance!.addPostFrameCallback((_) {
[        ]                    ^
[  +23 ms] ../../Library/Flutter/.pub-cache/hosted/pub.dartlang.org/pull_to_refresh-2.0.0/lib/src/internals/indicator_wrap.dart:260:24: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
[        ]  - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../Library/Flutter/packages/flutter/lib/src/widgets/binding.dart').
[        ]         WidgetsBinding.instance!.addPostFrameCallback((_) {
[        ]                        ^
[        ] ../../Library/Flutter/.pub-cache/hosted/pub.dartlang.org/pull_to_refresh-2.0.0/lib/src/internals/indicator_wrap.dart:290:22: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
[        ]  - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../Library/Flutter/packages/flutter/lib/src/widgets/binding.dart').
[        ]       WidgetsBinding.instance!.addPostFrameCallback((_) {
[        ]                      ^
[        ] ../../Library/Flutter/.pub-cache/hosted/pub.dartlang.org/pull_to_refresh-2.0.0/lib/src/internals/indicator_wrap.dart:393:22: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
[   +1 ms]  - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../Library/Flutter/packages/flutter/lib/src/widgets/binding.dart').
[        ]       WidgetsBinding.instance!.addPostFrameCallback((_) {
[        ]                      ^
commented

pub search pull_to_refresh_flutter3

Wait why there's a new package for that?

same issue for me

same issue

try: pull_to_refresh_flutter3: ^2.0.1

really? a new package? 😆

Hi,
why not update the package and not create a new package?

Hi, why not update the package and not create a new packageI

I think there's no one merge this PR 😄