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

Widgets binding error after upgrading flutter version to 2.13.0-0.1.pre #29

Open
muhammadmateen027 opened this issue Apr 20, 2022 · 1 comment

Comments

@muhammadmateen027
Copy link

I'm facing below warnings since I upgraded the flutter version to 2.13.0-0.1.pre.

Warnings:

Testing started at 10:59 AM ...
                      ^
../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_painter-1.0.1/lib/src/views/widgets/text_widget.dart:32:20: 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.dartlang.org/flutter_painter-1.0.1/lib/src/views/widgets/text_widget.dart:195:20: 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.dartlang.org/flutter_painter-1.0.1/lib/src/views/widgets/text_widget.dart:205:20: 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?.addObserver(this);
                   ^
../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_painter-1.0.1/lib/src/views/widgets/text_widget.dart:211:20: 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?.removeObserver(this);
                   ^
../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_painter-1.0.1/lib/src/views/widgets/text_widget.dart:279:34: 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').
    final value = WidgetsBinding.instance?.window.viewInsets.bottom;
                                 ^
../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_painter-1.0.1/lib/src/views/widgets/object_widget.dart:107:20: 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.dartlang.org/flutter_redux-0.9.0/lib/flutter_redux.dart:474: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((_) {
                     ^
../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_redux-0.9.0/lib/flutter_redux.dart:577: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((_) {
                     ^

Flutter version:

Flutter 2.13.0-0.1.pre • channel unknown • unknown source
Framework • revision 13a2fb10b8 (8 days ago) • 2022-04-12 15:34:25 -0500
Engine • revision 499984f99c
ToolsDart 2.17.0 (build 2.17.0-266.1.beta) • DevTools 2.12.1
@k-85
Copy link

k-85 commented May 21, 2022

Facing loss of background on renderImage(size). Seems related to WidgetsBinding issue as mentioned above. Started getting issue after flutter upgrade to 3.0

- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/home/system/snap/flutter/common/flutter/packages/flutter/lib/src/widgets/binding.dart').
package:flutter/…/widgets/binding.dart:1
    WidgetsBinding.instance?.addPostFrameCallback((timeStamp) {
                   ^

/home/system/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_painter-1.0.1/lib/src/views/widgets/text_widget.dart:195:20: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/home/system/snap/flutter/common/flutter/packages/flutter/lib/src/widgets/binding.dart').
package:flutter/…/widgets/binding.dart:1
    WidgetsBinding.instance?.addPostFrameCallback((timeStamp) {
                   ^
/home/system/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_painter-1.0.1/lib/src/views/widgets/text_widget.dart:205:20: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/home/system/snap/flutter/common/flutter/packages/flutter/lib/src/widgets/binding.dart').
package:flutter/…/widgets/binding.dart:1
    WidgetsBinding.instance?.addObserver(this);
                   ^

/home/system/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_painter-1.0.1/lib/src/views/widgets/text_widget.dart:211:20: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/home/system/snap/flutter/common/flutter/packages/flutter/lib/src/widgets/binding.dart').
package:flutter/…/widgets/binding.dart:1
    WidgetsBinding.instance?.removeObserver(this);
                   ^

/home/system/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_painter-1.0.1/lib/src/views/widgets/text_widget.dart:279:34: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/home/system/snap/flutter/common/flutter/packages/flutter/lib/src/widgets/binding.dart').
package:flutter/…/widgets/binding.dart:1
    final value = WidgetsBinding.instance?.window.viewInsets.bottom;

                                 ^
/home/system/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_painter-1.0.1/lib/src/views/widgets/object_widget.dart:107:20: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/home/system/snap/flutter/common/flutter/packages/flutter/lib/src/widgets/binding.dart').
package:flutter/…/widgets/binding.dart:1
    WidgetsBinding.instance?.addPostFrameCallback((timestamp) {
                   ^

vickyleu pushed a commit to vickyleu/flutter_painter that referenced this issue Sep 8, 2022
# This is the 1st commit message:

modify

# This is the commit message omarhurani#2:

modify

# This is the commit message omarhurani#3:

windows toolbar hidden

# This is the commit message omarhurani#4:

init commit

# This is the commit message omarhurani#5:

init commit

# This is the commit message omarhurani#6:

init commit

# This is the commit message omarhurani#7:

windows toolbar hidden

# This is the commit message omarhurani#8:

init commit

# This is the commit message omarhurani#9:

modify

# This is the commit message omarhurani#10:

modify

# This is the commit message omarhurani#11:

windows toolbar hidden

# This is the commit message omarhurani#12:

fullscreen zoom in/out in macos and windows compact

# This is the commit message omarhurani#13:

fullscreen zoom in/out in macos and windows compact

# This is the commit message omarhurani#14:

fullscreen zoom in/out in macos and windows compatible, but zoom still crash

# This is the commit message omarhurani#15:

modify

# This is the commit message omarhurani#16:

modify

# This is the commit message omarhurani#17:

windows toolbar hidden

# This is the commit message omarhurani#18:

modify

# This is the commit message omarhurani#19:

windows toolbar hidden

# This is the commit message omarhurani#20:

windows toolbar hidden

# This is the commit message omarhurani#21:

webrtc screen share

# This is the commit message omarhurani#22:

crash rep

# This is the commit message omarhurani#23:

macos screen share

# This is the commit message omarhurani#24:

screen share with sfu server

# This is the commit message omarhurani#25:

screen share with sfu server

# This is the commit message omarhurani#26:

screen share with sfu server

# This is the commit message omarhurani#27:

screen share with sfu server

# This is the commit message omarhurani#28:

screen share with sfu server

# This is the commit message omarhurani#29:

screen share with sfu server

# This is the commit message omarhurani#30:

nsd host finding by intranet

# This is the commit message omarhurani#31:

nsd host finding by intranet

# This is the commit message omarhurani#32:

nsd host finding by intranet

# This is the commit message omarhurani#33:

commit

# This is the commit message omarhurani#34:

nsd host finding by intranet

# This is the commit message omarhurani#35:

nsd host finding by intranet

# This is the commit message omarhurani#36:

nsd host finding by intranet

# This is the commit message omarhurani#37:

commit

# This is the commit message omarhurani#38:

commit

# This is the commit message omarhurani#39:

nsd host finding by intranet

# This is the commit message omarhurani#40:

nsd host finding by intranet

# This is the commit message omarhurani#41:

msvcp140  64 bit dll

# This is the commit message omarhurani#42:

commit

# This is the commit message omarhurani#43:

msvcp140  64 bit dll

# This is the commit message omarhurani#44:

msvcp140  64 bit dll

# This is the commit message omarhurani#45:

msvcp140  64 bit dll

# This is the commit message omarhurani#46:

msvcp140  64 bit dll

# This is the commit message omarhurani#47:

msvcp140  64 bit dll

# This is the commit message omarhurani#48:

msvcp140  64 bit dll

# This is the commit message omarhurani#49:

wm touch track

# This is the commit message omarhurani#50:

commit

# This is the commit message omarhurani#51:

commit

# This is the commit message omarhurani#52:

commit

# This is the commit message omarhurani#53:

wm touch track

# This is the commit message omarhurani#54:

commit

# This is the commit message omarhurani#55:

commit

# This is the commit message omarhurani#56:

commit

# This is the commit message omarhurani#57:

wm touch track

# This is the commit message omarhurani#58:

commit

# This is the commit message omarhurani#59:

commit

# This is the commit message omarhurani#60:

commit

# This is the commit message omarhurani#61:

wm touch track

# This is the commit message omarhurani#62:

wm touch track

# This is the commit message omarhurani#63:

wm touch track

# This is the commit message omarhurani#64:

wm touch track

# This is the commit message omarhurani#65:

wm touch track

# This is the commit message omarhurani#66:

commit

# This is the commit message omarhurani#67:

wm touch track

# This is the commit message omarhurani#68:

wm touch track

# This is the commit message omarhurani#69:

commit

# This is the commit message omarhurani#70:

wm touch track

# This is the commit message omarhurani#71:

wm touch track

# This is the commit message omarhurani#72:

eraser

# This is the commit message omarhurani#73:

wm touch track

# This is the commit message omarhurani#74:

wm touch track

# This is the commit message omarhurani#75:

commit

# This is the commit message omarhurani#76:

wm touch track

# This is the commit message omarhurani#77:

wm touch track

# This is the commit message omarhurani#78:

wm touch track

# This is the commit message omarhurani#79:

wm touch track

# This is the commit message omarhurani#80:

wm touch track

# This is the commit message omarhurani#81:

wm touch track

# This is the commit message omarhurani#82:

wm touch track

# This is the commit message omarhurani#83:

wm touch track

# This is the commit message omarhurani#84:

wm touch track

# This is the commit message omarhurani#85:

wm touch track

# This is the commit message omarhurani#86:

wm touch track

# This is the commit message #87:

wm touch track

# This is the commit message #88:

wm touch track

# This is the commit message #89:

wm touch track

# This is the commit message #90:

wm touch track

# This is the commit message #91:

wm touch track

# This is the commit message #92:

wm touch track

# This is the commit message #93:

wm touch track

# This is the commit message #94:

wm touch track

# This is the commit message #95:

eraser

# This is the commit message #96:

eraser

# This is the commit message #97:

eraser

# This is the commit message #98:

wm touch track

# This is the commit message #99:

eraser

# This is the commit message #100:

file manager

# This is the commit message #101:

file manager

# This is the commit message #102:

file manager

# This is the commit message #103:

file manager
vickyleu pushed a commit to vickyleu/flutter_painter that referenced this issue Sep 8, 2022
# This is the 1st commit message:

modify

# This is the commit message omarhurani#2:

modify

# This is the commit message omarhurani#3:

windows toolbar hidden

# This is the commit message omarhurani#4:

init commit

# This is the commit message omarhurani#5:

init commit

# This is the commit message omarhurani#6:

init commit

# This is the commit message omarhurani#7:

windows toolbar hidden

# This is the commit message omarhurani#8:

init commit

# This is the commit message omarhurani#9:

modify

# This is the commit message omarhurani#10:

modify

# This is the commit message omarhurani#11:

windows toolbar hidden

# This is the commit message omarhurani#12:

fullscreen zoom in/out in macos and windows compact

# This is the commit message omarhurani#13:

fullscreen zoom in/out in macos and windows compact

# This is the commit message omarhurani#14:

fullscreen zoom in/out in macos and windows compatible, but zoom still crash

# This is the commit message omarhurani#15:

modify

# This is the commit message omarhurani#16:

modify

# This is the commit message omarhurani#17:

windows toolbar hidden

# This is the commit message omarhurani#18:

modify

# This is the commit message omarhurani#19:

windows toolbar hidden

# This is the commit message omarhurani#20:

windows toolbar hidden

# This is the commit message omarhurani#21:

webrtc screen share

# This is the commit message omarhurani#22:

crash rep

# This is the commit message omarhurani#23:

macos screen share

# This is the commit message omarhurani#24:

screen share with sfu server

# This is the commit message omarhurani#25:

screen share with sfu server

# This is the commit message omarhurani#26:

screen share with sfu server

# This is the commit message omarhurani#27:

screen share with sfu server

# This is the commit message omarhurani#28:

screen share with sfu server

# This is the commit message omarhurani#29:

screen share with sfu server

# This is the commit message omarhurani#30:

nsd host finding by intranet

# This is the commit message omarhurani#31:

nsd host finding by intranet

# This is the commit message omarhurani#32:

nsd host finding by intranet

# This is the commit message omarhurani#33:

commit

# This is the commit message omarhurani#34:

nsd host finding by intranet

# This is the commit message omarhurani#35:

nsd host finding by intranet

# This is the commit message omarhurani#36:

nsd host finding by intranet

# This is the commit message omarhurani#37:

commit

# This is the commit message omarhurani#38:

commit

# This is the commit message omarhurani#39:

nsd host finding by intranet

# This is the commit message omarhurani#40:

nsd host finding by intranet

# This is the commit message omarhurani#41:

msvcp140  64 bit dll

# This is the commit message omarhurani#42:

commit

# This is the commit message omarhurani#43:

msvcp140  64 bit dll

# This is the commit message omarhurani#44:

msvcp140  64 bit dll

# This is the commit message omarhurani#45:

msvcp140  64 bit dll

# This is the commit message omarhurani#46:

msvcp140  64 bit dll

# This is the commit message omarhurani#47:

msvcp140  64 bit dll

# This is the commit message omarhurani#48:

msvcp140  64 bit dll

# This is the commit message omarhurani#49:

wm touch track

# This is the commit message omarhurani#50:

commit

# This is the commit message omarhurani#51:

commit

# This is the commit message omarhurani#52:

commit

# This is the commit message omarhurani#53:

wm touch track

# This is the commit message omarhurani#54:

commit

# This is the commit message omarhurani#55:

commit

# This is the commit message omarhurani#56:

commit

# This is the commit message omarhurani#57:

wm touch track

# This is the commit message omarhurani#58:

commit

# This is the commit message omarhurani#59:

commit

# This is the commit message omarhurani#60:

commit

# This is the commit message omarhurani#61:

wm touch track

# This is the commit message omarhurani#62:

wm touch track

# This is the commit message omarhurani#63:

wm touch track

# This is the commit message omarhurani#64:

wm touch track

# This is the commit message omarhurani#65:

wm touch track

# This is the commit message omarhurani#66:

commit

# This is the commit message omarhurani#67:

wm touch track

# This is the commit message omarhurani#68:

wm touch track

# This is the commit message omarhurani#69:

commit

# This is the commit message omarhurani#70:

wm touch track

# This is the commit message omarhurani#71:

wm touch track

# This is the commit message omarhurani#72:

eraser

# This is the commit message omarhurani#73:

wm touch track

# This is the commit message omarhurani#74:

wm touch track

# This is the commit message omarhurani#75:

commit

# This is the commit message omarhurani#76:

wm touch track

# This is the commit message omarhurani#77:

wm touch track

# This is the commit message omarhurani#78:

wm touch track

# This is the commit message omarhurani#79:

wm touch track

# This is the commit message omarhurani#80:

wm touch track

# This is the commit message omarhurani#81:

wm touch track

# This is the commit message omarhurani#82:

wm touch track

# This is the commit message omarhurani#83:

wm touch track

# This is the commit message omarhurani#84:

wm touch track

# This is the commit message omarhurani#85:

wm touch track

# This is the commit message omarhurani#86:

wm touch track

# This is the commit message #87:

wm touch track

# This is the commit message #88:

wm touch track

# This is the commit message #89:

wm touch track

# This is the commit message #90:

wm touch track

# This is the commit message #91:

wm touch track

# This is the commit message #92:

wm touch track

# This is the commit message #93:

wm touch track

# This is the commit message #94:

wm touch track

# This is the commit message #95:

eraser

# This is the commit message #96:

eraser

# This is the commit message #97:

eraser

# This is the commit message #98:

wm touch track

# This is the commit message #99:

eraser

# This is the commit message #100:

file manager

# This is the commit message #101:

file manager

# This is the commit message #102:

file manager

# This is the commit message #103:

file manager

# This is the commit message #104:

wm touch track
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

2 participants