asjqkkkk / markdown_widget

📖Rendering markdown by flutter!Welcome for pr and issue.
MIT License
321 stars 93 forks source link

[Question] How to get the maximum height required by the rendered widget. #161

Closed nrbnlulu closed 7 months ago

nrbnlulu commented 7 months ago

Is there a way to know the maximum height of the rendered widget? Sorry if it is a dumb question I'm a flutter noob.

asjqkkkk commented 7 months ago

Hi @nrbnlulu , this issue is unrelated to this package. You should ask Google instead. Otherwise, all I can do is help you ask Google, which seems odd

https://stackoverflow.com/questions/49307677/how-can-i-get-the-height-of-a-widget

nrbnlulu commented 7 months ago

You are probably right. Though if I may ask an help from you it would be nice. I am trying to implement a text box similar to what the very textbox here on github. If you pass long text the box would render long enough to show it all without scrolling is that possible with your widget? This is what I have currently image And this is how I want it to look like image

leaving aside that my implementation looks ugly :upside_down_face: I just want to be able to see both of the cats without the inner scroller.