flutter_html icon indicating copy to clipboard operation
flutter_html copied to clipboard

Need css column-width property

Open DuyPhanBao opened this issue 4 years ago • 4 comments

Can you add column-width property in Style()

DuyPhanBao avatar Jan 22 '21 09:01 DuyPhanBao

I have strong doubts whether this will happen. I can see the sue case for sure, and like to have it, though! Maybe though if we can find a Flutter widget (or Flutter library) that can handle layout-ing of text in columns?

erickok avatar Feb 08 '21 23:02 erickok

@erickok isn't this possible with flutter_layout_grid? We can detect when certain columns are fixed (also rows) and instead use FixedContentSize rather than IntrinsicContentTrackSize or whatever it is.

tneotia avatar Mar 06 '21 13:03 tneotia

Probleem I see is that we don't know where to split the text into the columns. Sure there must be some algorithm to do so, but I bet this would require quite done flutter internals to do right.

erickok avatar Mar 06 '21 13:03 erickok

~~Sorry I'm not following... what exactly do you mean by split the text?~~

~~A column-width would be set as an inline style, and while generating the rowSizes and colSizes list you can check the style to see if a width has been defined. Then flutter_layout_grid would handle the scaling and sizing of whatever is inside those cells to make the column-width or row-height work.~~

So I guess I was thinking of the wrong thing... I see what you mean. I agree, it will be difficult.

tneotia avatar Mar 06 '21 13:03 tneotia

Definitely possible, but implementation will be complicated. Adding to stretch goals for now. If this issue gets enough backing (more 👍 on the first issue), we'll consider it.

Standard Reference: https://www.w3.org/TR/css-multicol-1/

Sub6Resources avatar May 17 '23 20:05 Sub6Resources