Replies: 2 comments
-
you have to put the elements in another control like a row or column like ft.Column([ft.Image( src="static/zametki_site.png", width=100, height=100, fit=ft.ImageFit.NONE, repeat=ft.ImageRepeat.NO_REPEAT, border_radius=ft.border_radius.all(10), ), ft.Text(f"{i['name']}", color=lvl_colors[i["lvl"]]['txt'],top=True), width=width, height=int(width*1.61803398875), bgcolor=lvl_colors[i["lvl"]]['bg'], border=ft.border.all(2, lvl_colors[i["lvl"]]['border']]) and the put the column in the container |
Beta Was this translation helpful? Give feedback.
-
And if i want to make smth like |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I try smth like
ft.Container( ft.Image( src="static/zametki_site.png", width=100, height=100, fit=ft.ImageFit.NONE, repeat=ft.ImageRepeat.NO_REPEAT, border_radius=ft.border_radius.all(10), ), ft.Text(f"{i['name']}", color=lvl_colors[i["lvl"]]['txt'],top=True), width=width, height=int(width*1.61803398875), bgcolor=lvl_colors[i["lvl"]]['bg'], border=ft.border.all(2, lvl_colors[i["lvl"]]['border']), border_radius=ft.border_radius.all(5), )
but i saw only image. How i can show 2 elements in one container?Beta Was this translation helpful? Give feedback.
All reactions