jonataslaw / get_server

A backend server that makes it possible to program with Flutter syntax and reuse existing code
Apache License 2.0
476 stars 42 forks source link

How to run the server app in the background of a flutter app? #78

Closed blueeyestw closed 1 year ago

blueeyestw commented 2 years ago

I want to create a Flutter video player app that concurrently hosts a file server in the background. Is it possible with this package? Will both apps (UI app and backend app) be able to communicate with each other during runtime?

hoo0 commented 2 years ago
  1. make "server.dart" (sample file)
  2. in main.dart ... import './server.dart' as server;

void main() { runApp(const MyApp()); server.main(); }