how to make custom loading? #3453
Answered
by
ndonkoHenri
BigNeutronStar
asked this question in
Q&A
-
Questionhow to make custom loading (i have processRing now)? I want to use gif as loading in my flet project. What should I do? Code sampleclass Loading(Page):
def __init__(self, page: ft.Page):
super().__init__(page)
self.page = page
self.controls = [
ft.Container(
content=ft.Row(
[
ft.Column(
[
ft.ProgressRing(),
ft.Text("loading"),
],
alignment=ft.MainAxisAlignment.CENTER,
horizontal_alignment=ft.CrossAxisAlignment.CENTER,
expand=True,
)
],
alignment=ft.MainAxisAlignment.CENTER,
vertical_alignment=ft.CrossAxisAlignment.CENTER,
expand=True,
),
alignment=ft.alignment.center,
expand=True,
)
] Error messagei don't have an error ------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
Answered by
ndonkoHenri
Jun 11, 2024
Replies: 1 comment 8 replies
-
Use the |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
ndonkoHenri
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use the
Image
Control.I think it supports gif files.