Bruce
banner
bgeerdes.bsky.social
Bruce
@bgeerdes.bsky.social
iOS & Flutter apps | Made in Colorado | vdub.software

Mastodon:
https://mastodon.cloud/@bgeerdes
Ha, that's been one of the benefits I've extolled to others about Flutter, being able to use a "real" programming languages. I'm coming from Swift. There are some things I miss but Dart holds its own.
December 1, 2024 at 12:50 AM
It's been a learning experience moving from iOS to Flutter. In iOS I'm used to being able to broadcast notifications to the entire app whereas in Flutter notifications only go *up* the widget tree. How to send information downstream? ChangeNotificationProviders. Will check out your recommendations.
November 22, 2024 at 6:22 PM
I not only need a service, but to be notified when values change. This is what I'm using to notify my screens when a purchase status has changed.
November 22, 2024 at 6:18 PM
What would you recommend?
November 22, 2024 at 5:53 PM
Fortunately what I was looking for was a "global" provider accessible everywhere in my app. In that case, you can wrap your App widget with the ChangeNotifierProvider. Then everyone will able to access it.
November 22, 2024 at 3:55 PM
One can wrap the widget you're navigating to in the route with a ChangeNotifierProvider.value and pass the provider instance down that way. But you'd encounter a problem if you're using static restorable routes like me. (You don't have access to the provider instance at that point.)
November 22, 2024 at 3:53 PM
No worries! :)
November 15, 2024 at 3:55 PM
To answer my own question: Yes, you need to enroll in the "15% service fee". But Google puts it front & center when you first set up an account, so it's easy to do.
November 14, 2024 at 7:04 PM
I've noticed that in WebViewWidget (pub.dev/packages/web...). I can add "padding" to the end of its content (and extra line break or two) but the scroll bar goes a little too far down when at the end. It uses native implementations of WebView so it's not using a standard Flutter Scrollbar. 🤷‍♂️
November 7, 2024 at 6:05 PM
Do you know off-hand the way Google Play does it? It's similar, but I think it was 15% of first $1 million, no need to apply to a program.
November 7, 2024 at 5:53 PM