Multiple controls in a container? #1237
Answered
by
gbrandt
tsenotsenov
asked this question in
Q&A
-
QuestionHow can I add more than one ElevatedButton or an ElevatedButton and a TextField in a single container? Code samplepage.controls.append(flet.Container(gradient=flet.LinearGradient(begin=flet.alignment.top_center,
end=flet.alignment.bottom_center,
colors=[flet.colors.BLUE,
flet.colors.BLUE_900]),
padding=5,
border_radius=5,
content=flet.ElevatedButton(text="I'm in a container!")
)) Error messageNo response ------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
Answered by
gbrandt
Mar 30, 2023
Replies: 1 comment
-
Put the multiple controls into a control that accepts multiple controls, such as Row, Column, Stack etc. Then add that control to the container. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tsenotsenov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put the multiple controls into a control that accepts multiple controls, such as Row, Column, Stack etc. Then add that control to the container.