-
Notifications
You must be signed in to change notification settings - Fork 455
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
Cannot use Markdown in a Container #359
Comments
container needs width or height |
Height is needed. If I just use width, then nothing happens. It would be helpful to document it in https://flet.dev/docs/controls/container/ that height is mandatory. Now I have to measure the height of the component in absolute units or is there also a possibility to set a relative value dependent on the window size. Thank you for your help. |
#331 There are similar problems here |
So, the problem is that to implement markdown Flet uses I've just fixed Markdown in container: Container(
Markdown(
md2,
extension_set="gitHubWeb",
on_tap_link=lambda e: page.launch_url(e.data),
),
width=200,
bgcolor="#f5f5f5",
border=border.all(2, "blue"),
border_radius=10,
padding=10,
clip_behavior="antiAlias",
) |
Description
I try to render md files in my app and thought it would be good to put them into a container. Especially because I need to show multiple md files in one page. But after putting them into a container, flet didn't display anything.
Code example to reproduce the issue:
Is there a way to containerize Markdown, or is this not provided for?
The text was updated successfully, but these errors were encountered: