flet icon indicating copy to clipboard operation
flet copied to clipboard

'headless' flet web mode

Open hololeo opened this issue 3 years ago • 0 comments

Please Describe The Problem To Be Solved

Presently launching flet for web/html, launches the url in a browser tab. This is great for development but not necessary in production.

(Optional): Suggest A Solution

Add commandline switch and / or api option to only serve webpage/websocket without launching browser

perhaps something like

flet.app(target=main, view=flet.WEB_BROWSER mode=headless)

or 

flet.app(target=main, view=flet.WEB_BROWSER mode=serveronly)

hololeo avatar Oct 18 '22 01:10 hololeo