Open dudejj opened 7 months ago
A style where people might deem more comfortable for writing code on a single line and saving some space, can be seen with MUI. Of course it's going to come down to preferences. But it does show that the VUI can be built on top of and further tailored to particular tastes with other libraries.
Regardless, do think this is an interesting idea, to increase clarity.
Before reaching for the stars, does text input work as expected on all "supported" platforms in the meantime? Last time I tried Android was a problem.
...does text input work as expected on all "supported" platforms in the meantime? Last time I tried Android was a problem.
The comments do not appear related to this issue. Perhaps open a new issue or one at VAB, with an example and specific details.
Rethinking this, from a user perspective, VUI's syntax is mostly fine (though not sure about spacings versus spacing). It's likely more a matter of documentation, examples, and the way it's often written that can cause issues or confusion.
Instead of always typing out components and widgets vertically, it might be better to show those horizontally and created first, to also save vertical space. Then place the widgets into the columns and rows, which can be typed out vertically (and helps to visualize). Thus, it all might be a matter of style versus actual syntax.
// psuedo
widget() // horizontal
widget() // horizontal
column(
children: [
widget
widget
]
)
window(children: [column])
run(window)
Yeah, that's how I do it.
Sometimes you can just call ui.tetxbox(...), but often you need to store the object, to access it later.
UI code as shown in demo example is more or less confusing, notably for beginner. Same demo can be created like this, which syntax may be much more attractive and easier to grasp:
Maybe clearer yet could be adding widgets and containers like this (which don't work at the moment):
col.children << [txtbox1, txtbox2] row.children << [col] app.window.children << [row]