You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to place an ElevatedButton in the upper right side of a column where it has an image and a text. So I tried to make a row but when I execute the button it doesn't come out where I want it to.
The button should have a 40px margin on the top, left and right side.
Below is a reference image of how it has to look like
But when executing the code it comes out like this ➡.
Code sample
importfletfromfletimport*defmain(page: Page):
page.title='EduConter'page.theme_mode='LIGHT'page.padding=0page.window_maximized=Truepage.window_resizable=Falsepage.vertical_alignment='Center'page.horizontal_alignment='Center'page=Container(
Stack([
Image(
src='./images/fondoWelcome.jpg'
),
Container(
Container(
Row(
spacing=0,
alignment=MainAxisAlignment.CENTER,
controls=[
Container(
Column(
spacing=40,
controls=[
Container(
Image(
src='./images/welcome.png',
width=831,
height=260
),
),
Container(
Text(
'''Bienvenid@ a EDUCONTER. Estamos encantados de tenerte aquí, esperamos que disfrutes de nuestro programa contable y encuentres todo lo que necesitas. No dudes en explorar y descubir todas las características que ofrecemos. ¡Disfruta tu experiencia!''',
color='#1F0131',
font_family='Inter',
size=40,
weight=600,
max_lines=7,
text_align=TextAlign.CENTER
),
width=866,
height=357
)
]
),
),
Container(
ElevatedButton(
content=Text(
'LOGIN',
size=24,
color='#43088E'
),
bgcolor='#DABDF8',
style=ButtonStyle(
side={
'': BorderSide(2, '#43088E')
},
shape={
'': RoundedRectangleBorder(radius=10)
}
),
width=147,
height=43,
),
margin=margin.only(left=40, top=40, right=40)
)
]
),
),
)
]),
)
flet.app(target=main)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I am trying to place an ElevatedButton in the upper right side of a column where it has an image and a text. So I tried to make a row but when I execute the button it doesn't come out where I want it to.
The button should have a 40px margin on the top, left and right side.
Below is a reference image of how it has to look like
But when executing the code it comes out like this ➡.
Code sample
Error message
No response
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions