You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If i add a VerticalDivider in, for exemple, a Row, if the row, or none of the parent of the row has a height defined, the VerticalDivider will not show.
If the Row, or a parent control where the row lies, has a height, it will show.
So, with a no height defined control, with expand enabled, it will not be visible
Code sample
importfletasftdefmain(page:ft.Page):
page.vertical_alignment=ft.MainAxisAlignment.CENTERpage.add(
ft.Container(
border=ft.border.all(3, ft.colors.WHITE),
padding=15,
height=300, # => if not commented : VerticalDivider will be visiblecontent=ft.Row(
# height=300, # => if not commented : VerticalDivider will be visiblecontrols=[
ft.Text("Hello", size=20),
ft.VerticalDivider(thickness=3, color=ft.colors.WHITE),
ft.Text("World", size=20),
ft.Container(
height=300,
width=20,
bgcolor=ft.colors.TRANSPARENT
)
],)
))
if__name__=="__main__":
ft.app(target=main)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Question
Hi,
Not sure it's a bug or not.
If i add a VerticalDivider in, for exemple, a Row, if the row, or none of the parent of the row has a height defined, the VerticalDivider will not show.
If the Row, or a parent control where the row lies, has a height, it will show.
So, with a no height defined control, with expand enabled, it will not be visible
Code sample
Error message
No response
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions