0

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
  • .aar added to libs/ in the host app
  • Communication via MethodChannel
  • Using FlutterActivity with 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
asked Jul 6, 2025 at 11:04

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.