Using Flet, how can I use listviews to list certain types of files (.mp3, .mkv, ...) present in a given folder

Hi, first and foremost, I am aware of some topics related to this question. But me being new to coding, I couldn’t use them to fix my issue.

So, I have a json file in which a folder path is stored as well as a global variable from another page that I intend to pass to this page of code - given below - with basket.

I’d like to have a list of every musical file present in the given folder displayed at the center of the app, in a scroll-able list.

I have tried, as you can see in the code sample, to create a container, with a row, with a controls section where ft.ListViews is. I don’t think it really works, but I don’t know how to make it work, and more importantly, I don’t know how to make ft.ListViews actually list the files !

Hope someone is bored enough to help me, thanks in advance !

import flet as ft
from flet_route import Params, Basket

def main_page(page: ft.Page, params: Params, basket: Basket):
    return ft.View(
        "/",
        bgcolor='#FFFFFF',
        controls=[
            ft.Row(
                controls=[
                    ft.Container(expand=True),
                    ft.IconButton(
                        icon=ft.Icons.SETTINGS,
                        icon_size=20,
                        on_click=lambda _: page.go('/parameters/')
                    ),
                ],
                alignment=ft.MainAxisAlignment.SPACE_BETWEEN,
            ),

            ft.Container(
                content=ft.Column(
                    controls=[
                        ft.Row(
                            controls=[
                                ft.ListView( #lists nothing, but I guess is there
                                    expand=True,
                                    spacing=10,
                                    padding=20,
                                )
                            ],
                        ),
                    ],
                    alignment=ft.MainAxisAlignment.CENTER,
                    horizontal_alignment=ft.CrossAxisAlignment.CENTER,
                ),
                alignment=ft.alignment.center,  # Unworking center option
                bgcolor=ft.colors.AMBER,
                height=500, #nice but doesn't resize with window
                width=800,
                border_radius=10,
            ),
        ],
    )