is putting multiple widgets vertically when it is expected to be horizontally (there is room without need to wrap around).
HTML
Here is some code.. we normally add an href and then swap it out for a widget..
Either an Inkwell to launch to a website, or in our new case, a button that will launch a dlg with some data.
here is the table in html with the HREF before doing the customwidget
As a workaround, I made a single widget for the area we want to write to as flutter Row
Then I added two test buttons.
This will work for my case. I would imagine that the Html widget should work like this without me adding a row manually
Issue:
CustomWidgetBuilder when used in table data
HTML
Here is some code.. we normally add an href and then swap it out for a widget.. Either an Inkwell to launch to a website, or in our new case, a button that will launch a dlg with some data.
here is the table in html with the HREF before doing the customwidget
Short version of interest:
Long complete version :
Flutter Code for custom widget builder.
If we put inkwell, it also stacks them vertically.
Here is what the buttons look like after we display them.
What we expect?
We expect the buttons or any other multiple widgets to be on the same row horizontally if there is enough room in the table row. One widget inside the
As a workaround, I made a single widget for the area we want to write to as flutter Row Then I added two test buttons. This will work for my case. I would imagine that the Html widget should work like this without me adding a row manually
The other way is returning InlineCustomWidget which the real programmer on our team (not me) figured out.
So it works now?
Yes. I guess this is the proper way to do this although it was not intuitive. Shall we close this?
The
InlineCustomWidget
wrapper is created specifically for this use case so I would say it's the easiest way to achieve your desired effect.yes.. it is fine.. closed