How to use ListView on_scroll event[Question] #3755
Replies: 2 comments
-
PS C:\Users\31198\Documents\FlavorDroid> & C:/Python311/python.exe c:/Users/31198/Documents/FlavorDroid/main.py |
Beta Was this translation helpful? Give feedback.
-
Issue has been fixed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I want to get the diruation when I scroll the listview,but it didn't work
def Lrc_view_scroll(e: ft.OnScrollEvent):
print("true")
print(e.event_type)
print(e.direction)
lrc_view = ft.ListView(expand=True,on_scroll=Lrc_view_scroll)
for i in LrcRead(music_src).valuelist:
lrc_view.controls.append(
ft.Container(
margin=ft.margin.all(10),
content=ft.Text(i, color="white",size=22,text_align=ft.TextAlign.START)
)
)
Code sample
No response
Error message
No response
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions