Flutter for UI, Java for backend?

Ovidiu :

It is possible to design the UI in Flutter and for the backend to use the Android Java for a specific android app? And if it's possible, how can I do that?

dshukertjr :

Yes, it is possible!

You have two options:

  1. Use Flutter's platform channel to communicate to platform-specific code https://flutter.dev/docs/development/platform-integration/platform-channels?tab=ios-channel-swift-tab
  2. Write your application with native Java and bring Flutter widget into the view https://flutter.dev/docs/development/add-to-app/android/project-setup

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=276509&siteId=1