Backendless / Flutter-SDK

Backendless SDK for Flutter
MIT License
34 stars 6 forks source link

Example App: Dangerous example for async initialization #11

Closed spacejunky closed 2 months ago

spacejunky commented 3 years ago

While it obviously works for the example app, I think that the approach to triggering Backendless initialization in initState() and not having a check for completion anywhere is not a good idea for a tutorial example.

While I understand that the example app should be kept as simple as possible, I feel it should also be correct (or at the very least contain a comment stating that this is not a generally applicable way of doing things).

Maybe the example (and, it seems, some pieces of generated flutter code and doc examples) should get an update?

spacejunky commented 3 years ago

Happy to make a PR if you want