The problem
My idea is to create some simple components using Flutter so that they can be used in multiple native iOS and Android projects in our firm.
For example, consider a generic login view. This view can be coded once in Flutter and then can be included later on into projects that have both iOS and Android parts(native) . So such common components can be written once using Flutter instead of twice as native iOS and Android components.
What I have tried so far
I have followed the steps here https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps and it works, but it seems very restricted in functionality.
My questions are
- How can I add multiple flutter projects like this, with each project representing a reusable component? Is that even the way to go?
- Can I have smaller components- for example in iOS, UIViews instead of FlutterViewController without native hacking ?
- How do I handle passing data between the native and Flutter part and also the navigation?