Hey Adrian, happy that you like it!
To your question: Pritty sure you cant because Splash and Main App are completely separated.
I am using https://pub.dev/packages/get_it to manage dependencies. So in the Splash App where I put the comment I call an async function where I initialize all async deps…
Thank you for your kind words! I always opt for making things simpler.
For me Flutter is the same as lots of other frameworks I’ve tried. They start out simple but when you add everything you need they can quickly get out of hand.
Small things like these help keeping complexity at bay and I think that’s always good regardless of code/project size.
You can do a Stateful Widget as SplashPage as well and I have done that a couple of times. I had the requirement of being able to restart the Flutter App from within and that is how I discovered this approach.
Since then I use this for all my apps because it is a lot easier to implement and maintain in my experience.
Thank you for your response. You are absolutely right in regards to what you say about MVP and Clean Architecture, it’s not part of it. But the beauty of MPV is that it is very expressive in it’s intent. There is no hidden
magic. I do think about different approaches a lot and I would love to find the perfect generic solution for Flutter Apps in…
Jihua Huang I had the same issue. Release was working but run wasn’t anymore. For now a simple fix seems to be to put the ndk / abiFilters into the release block.