Replies: 1 comment
-
I dont know what you want to achieve but below is an example: from flet import *
def main(page: Page):
page.padding = 0
row = Row(wrap=True, run_spacing=80, scroll=True)
for i in range(20):
row.controls.append(
Container(
content=Text(f"This is {i}"),
bgcolor=colors.BLACK38,
width=300,
height=100,
# margin=margin.only(right=50),
)
)
m = Container(
content=row,
# margin=margin.only(bottom=205),
bgcolor=colors.RED_200,
expand=True,
)
next_btn = Column(
[
Container(
Row(
[Text("show info")],
alignment="center",
),
height=200,
bgcolor=colors.AMBER_100,
border=border.only(top=border.BorderSide(2, "grey")),
padding=0,
)
],
alignment="end",
)
# c = Stack(
# controls=[m, next_btn],
# expand=True,
# )
page.add(m, next_btn)
app(target=main, assets_dir="assets") |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want an up and down layout that displays some content in one row and multiple columns, and below is an operation panel. I have done it well, but it has not been very ideal
this is my code
`from flet import *
def main(page: Page):
page.padding = 0
app(target=main, assets_dir="assets")
`
I feel that many things in Flet are not very mature, I don't know if it's because I didn't use them wrong
Beta Was this translation helpful? Give feedback.
All reactions