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

Migrate to 3.0.0 #42

Closed
M2dL1fe opened this issue May 16, 2022 · 4 comments
Closed

Migrate to 3.0.0 #42

M2dL1fe opened this issue May 16, 2022 · 4 comments

Comments

@M2dL1fe
Copy link

M2dL1fe commented May 16, 2022

../../flutter/.pub-cache/hosted/pub.flutter-io.cn/sticky_and_expandable_list-1.0.3/lib/src/expandable_section_container.dart:170:22: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.

  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance?.addPostFrameCallback((timeStamp) {
    ^
    ../../flutter/.pub-cache/hosted/pub.flutter-io.cn/sticky_and_expandable_list-1.0.3/lib/src/sliver_expandable_list.dart:410:22: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.addPostFrameCallback((_) {
    ^
@tp7309
Copy link
Owner

tp7309 commented May 17, 2022

done, try 1.1.0 version.

@M2dL1fe
Copy link
Author

M2dL1fe commented May 17, 2022

nice @tp7309

@tp7309 tp7309 closed this as completed May 17, 2022
@fullflash
Copy link

fullflash commented May 20, 2022

same error with lates version.

[        ] ../../../../.pub-cache/hosted/pub.dartlang.org/sticky_and_expandable_list-1.1.0/lib/src/expandable_section_container.dart:170:31: Error: Method 'addPostFrameCallback' cannot be called on 'WidgetsBinding?' because it is potentially null.
../…/src/expandable_section_container.dart:170
[        ]  - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../../SDK_all/flutter/packages/flutter/lib/src/widgets/binding.dart').
package:flutter/…/widgets/binding.dart:1
[        ] Try calling using ?. instead.
[        ]       WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
[        ]                               ^^^^^^^^^^^^^^^^^^^^

@tp7309
Copy link
Owner

tp7309 commented May 20, 2022

@fullflash see #43.

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

3 participants