how to make your image full screen? #2545
Answered
by
Vallekralle
Ambassador-of-programming
asked this question in
Q&A
-
QuestionI want to make my image as the background of the program and stretch it to the whole screen and how can I do it? Code sampleimport flet as ft
async def start():
gif = ft.Image(
src="image/3ZSH.gif",
width='100vw',
height='100vw',
fit=ft.ImageFit.CONTAIN,
)
text = ft.Text(
"Моя статистика",
size=30,
)
stack = ft.Stack(
[gif, text],
width="100vw",
height="100vh",
)
return stackError messageNo response ------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
Answered by
Vallekralle
Feb 4, 2024
Replies: 1 comment 6 replies
-
|
Hi Ambassador-of-programming, You can add a Example:Stay safe and have fun programming! |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
Ambassador-of-programming
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Hi Ambassador-of-programming,
You can add a
Containerto the page and set the parameter:expand=True.Example:
Stay safe and have fun programming!