Hi everyone,
After too many long power cuts, I apparently had the questionable idea of
writing a small declarative UI wrapper for B4A.
DeclarativeUI is an experiment inspired by Flutter and other modern UI
frameworks. It lets you describe a screen as a tree of widgets instead of
creating and positioning every native view manually.
The library currently includes state binding, natural layout, themes,
navigation inside one Activity, dialogs, snackbars, animations and native
view interoperability.
It is not intended to replace B4A or B4X, and it is definitely not a complete
Flutter implementation. It is just a small beta project with rough edges,
created to explore whether this style of UI development feels useful in B4A.
Is it revolutionary? Probably not. Is it useful? Maybe.
I am sharing it mainly to get feedback. If you try it, I would be interested
in hearing what feels clear, what feels unnecessarily complicated and which
parts should be removed rather than expanded.
Purists may want to look away now.
After too many long power cuts, I apparently had the questionable idea of
writing a small declarative UI wrapper for B4A.
DeclarativeUI is an experiment inspired by Flutter and other modern UI
frameworks. It lets you describe a screen as a tree of widgets instead of
creating and positioning every native view manually.
For example::
Dim body As UIColumn
body.Initialize _
.Spacing(12dip) _
.AddChild(title) _
.AddChild(description) _
.AddChild(actionButton)
The library currently includes state binding, natural layout, themes,
navigation inside one Activity, dialogs, snackbars, animations and native
view interoperability.
It is not intended to replace B4A or B4X, and it is definitely not a complete
Flutter implementation. It is just a small beta project with rough edges,
created to explore whether this style of UI development feels useful in B4A.
Is it revolutionary? Probably not. Is it useful? Maybe.
I am sharing it mainly to get feedback. If you try it, I would be interested
in hearing what feels clear, what feels unnecessarily complicated and which
parts should be removed rather than expanded.
Purists may want to look away now.