how to make the container fixed when scrolled #604
bobwatcherx
started this conversation in
General
Replies: 2 comments 1 reply
-
I think you can use a stack with absolute positioning: https://flet.dev/docs/controls/stack#absolute-positioning-inside-stack |
Beta Was this translation helpful? Give feedback.
0 replies
-
Here is an example: import flet as ft
def main(page: ft.Page):
page.overlay.append(ft.Container(ft.Text("I'm inside a container!"), bgcolor="yellow", padding=20, border_radius=5, bottom=20, left=20, right=20))
page.scroll = "auto"
for i in range(0, 100):
page.controls.append(ft.Text(f"Line {i}"))
page.update()
ft.app(target=main) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a problem how to make a widget container fixed when scrolled ?
is there a solution to make it
this sample design
https://miro.medium.com/max/1400/1*Bt0DtEsCzKdpBCPqwHU1HQ.png
it works the same way as floatingactionbuttonhowever . what I want is a container and a card that is in the bottom center
Beta Was this translation helpful? Give feedback.
All reactions