top of page

[Flutter/dart] Method 'addPostFrameCallback' cannot be called on 'WidgetsBinding?' because ...


Phenomenon

When I try to build with Flutter I get the following error


Method 'addPostFrameCallback' cannot be called on 'WidgetsBinding?' because it is potentially null


By following the log, it seems that flutter_redux is issuing it.


The environment is Flutter 3.7.0, flutter_redux 0.10.0



Cause and Solution

I don't know the exact cause, but it seems to be a compatibility issue between the versions of Flutter and the flutter_redux library.

When I dropped flutter_redux to 0.9.0, the above error did not occur and I was able to build successfully.



Reference

https://github.com/brianegan/flutter_redux/issues/233


Recent Posts

See All

Commenti


category

Let's do our best with our partner:​ ChatReminder

iphone6.5p2.png

It is an application that achieves goals in a chat format with partners.

google-play-badge.png
Download_on_the_App_Store_Badge_JP_RGB_blk_100317.png

Let's do our best with our partner:​ ChatReminder

納品:iPhone6.5①.png

It is an application that achieves goals in a chat format with partners.

google-play-badge.png
Download_on_the_App_Store_Badge_JP_RGB_blk_100317.png

Theme diary: Decide the theme and record for each genre

It is a diary application that allows you to post and record with themes and sub-themes for each genre.

google-play-badge.png
Download_on_the_App_Store_Badge_JP_RGB_blk_100317.png
bottom of page