32 ms·
That is basically what Flutter is. Renders to desktop, mobile and web, only tui is missing there.
by vbsteven 5y ago
That is basically what Flutter is. Renders to desktop, mobile and web, only tui is missing there.
- agumonkey 5y agoI thought flutter web uses wasm/canvas and not html am I wrong ?
- vbsteven 5y agoNo you are right, but that’s irrelevant to my point. The point being that Flutter is an example of a “react-like” framework to write UI that renders to multiple backends.
- agumonkey 5y agonot really, it's important to me that we don't flatten things into a canvas rendering system, the idea is to remap abstract UI structures onto various projections (terminal, html, else)
- vbsteven 5y agoI see. We’re talking about different levels of abstraction. There are two approaches there. One is to project abstract UI onto platform controls (React Native), the other is to use “drawing” (Flutter). Both have their pros and cons. The main drawback of abstracting over controls is that each platform works very differently and the abstraction quickly starts leaking. Also some of the targets don’t have any controls like the terminal. All you can do in a terminal is draw text in rows and columns. That is why most (not all) cross platform frameworks abstract on the drawing level. Gtk, Qt, Flutter, Druid, Dear ImGui and many more.
- agumonkey 5y agoGot you. It's indeed very subtle to map UI controls over different mechanisms