Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a standalone desktop app with Flutter & Java Spring without creating a web server on localhost

We want to launch a new open source project that will present as a Desktop app. We want to use Java Spring for business logic (backend) and Flutter to build the GUI (As we may create mobile and web applications).

The idea is that user has the choice to use its Flutter desktop app as standalone (business logic processed locally with java spring) or to connect its desktop app to an external server java spring that we provide (exactly the same processing features, just computation are done on OUR server).

Our initial idea is to just embed a Spring web server in the desktop app, that will launch and be used if user doesn't want to use our external server.

I feel this approach is overkilled. Why launching a web server locally just for 1 consumer (the desktop app itself)?

There should be a better approach... I made my researches but I found nothing, most solutions are to use front and back end solutions on same language (i.e, Flutter only application with business logic, or using Java Spring for backend and JavaFX for frontend) but we definitely want to avoid that and use both Flutter and Java Spring.

Maybe I am not addressing the right question. Does anyone can help me to achieve this goal or to better formulate my issue?

Many thanks !

like image 907
Julien Elkaim Avatar asked Nov 15 '25 09:11

Julien Elkaim


1 Answers

What about using platform cannels? I think they are made for this. https://flutter.dev/docs/development/platform-integration/platform-channels

like image 157
mipa Avatar answered Nov 18 '25 00:11

mipa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!