Closed Technorocker closed 2 years ago
@Technorocker I think you are using lower version of flutter. With flutter 3.0
, there was change in nullability of WidgetsBinding.instance
. So, we no longer require adding ?
or !
after WidgetsBinding.instance
. I recommend updating your flutter sdk.
Ah ok, Ya im not upgrading past the version im using for my current app. Last time i tried that I spent an entire day trying to figure out how to downgrade my flutter/gradle/android/blah after most the plugins I'm using werent compatible unfortunately.
But good to know, thank you for response.
@Technorocker #103 will fix the errors you were getting for postFrameCallback.
I was looking for a solution for this plugin as I was getting fails while trying to build out an apk. I jsut updated to newest version from 0.1.1 to 0.1.4 the verifyresource issue is indeed gone now but now I have a new issue with widgetbindings. This is the error I'm getting when build fails...
The only 2 places I use the audiowaveform I also use a timer in the widget so I use the WidgetsBindingObserver on the class.
So after checking out the two errors a bit more I went to the 2 locations that you use addPostFrameCallback and added an ! at the end of instance like so for the first file reference...
and again for the second file reference
After I added those 2 exclamation marks I am able to build the apk now