fix loading
This commit is contained in:
@@ -5,18 +5,24 @@ import requests
|
||||
class Login(ft.Column):
|
||||
def __init__(self, page: ft.Page = None):
|
||||
self.page = page
|
||||
self.login = Field(label="Login"),
|
||||
self.password = Field(label="Password", password=True)
|
||||
self.login = Field(label="Login",width=300),
|
||||
self.password = Field(label="Password", password=True,width=300)
|
||||
super().__init__(
|
||||
horizontal_alignment=ft.CrossAxisAlignment.CENTER,
|
||||
expand=True,
|
||||
controls=[
|
||||
ft.Row(
|
||||
expand=True
|
||||
),
|
||||
ft.Row(
|
||||
alignment=ft.MainAxisAlignment.CENTER,
|
||||
controls=[
|
||||
ft.Text(color=color[1], size=42, value="Copp")
|
||||
]
|
||||
),
|
||||
ft.Row(
|
||||
expand=True
|
||||
),
|
||||
ft.Row(
|
||||
alignment=ft.MainAxisAlignment.CENTER,
|
||||
controls=[
|
||||
@@ -29,12 +35,18 @@ class Login(ft.Column):
|
||||
self.password
|
||||
]
|
||||
),
|
||||
ft.Row(
|
||||
height=12
|
||||
),
|
||||
ft.Row(
|
||||
alignment=ft.MainAxisAlignment.CENTER,
|
||||
controls=[
|
||||
Button(text="Enter", on_click=self.enter_go_to_next_page)
|
||||
]
|
||||
)
|
||||
),
|
||||
ft.Row(
|
||||
expand=True
|
||||
),
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user