I'm integrating a Flutter module (built as an .aar) into a Flutter host app. The goal is to keep the module's Dart code hidden (like an SDK), while still allowing UI launch and data exchange via MethodChannel.
- Flutter module built with
flutter build aar .aaradded tolibs/in the host app- Communication via
MethodChannel - Using
FlutterActivitywith a cached engine
Is this the correct approach to prevent Dart source exposure and ensure modular integration? Are there any improvements or best practices you would recommend?
Viktor Sbruev
1,0301 gold badge9 silver badges33 bronze badges
lang-dart