-
-
Notifications
You must be signed in to change notification settings - Fork 893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overflow table to scroll horizontally #560
Comments
This seems interesting, I guess you mean something like GitHub mobile's table rendering method. I am more concerned that you cannot extract the table in |
I understand your use-case but wonder if this is something flutter_html should offer as standard. I'm not even sure where you'd set this 'preference'. As a (temporary, perhaps) workaround, could you not set the table width explicitly and wrap it in a horizontally scrolling container yourself? By the way, I am not sure what the proper width would be anyway for your use-case. It we would let it scale to its intrinsic horizontal size then all content would be on one line and the row where you have your headers would be really wide. |
I agree with @erickok . We have customRender for these scenarios.
Yes this is correct, we do not return the widget but instead the bits and pieces the plugin uses internally to create the widgets. I suggest you have a look at layout_element.dart to understand how we build tables, and using customRender you can make a similar implementation albeit scrollable. It may be a little bit of work but once you know what you're doing you can customize it to the nth degree. |
Thank you guys for the info. Will have a look at it and try to make the most of it! Nonetheless, you helped a lot. |
My suggestion would be to try to have a around the table, which (perhaps via a custom render) you fix to a certain size. You can then leave the whole table parsing/rednering logic as-is as you simply pass this as a child to that fixed-width container.
|
I would like to overflow the table horizontally, in order to support multi-column tables, without wrapping on the available width. I see that from the style it's not possible and in customRender, I am not able to extract the table as flutter's table and wrap it in a scrollview.
The text was updated successfully, but these errors were encountered: