add user? new page? new web
This commit is contained in:
@@ -9,10 +9,31 @@ class clolors:
|
||||
|
||||
|
||||
|
||||
class TextField_input(ft.TextField):
|
||||
def __init__(self):
|
||||
class CastomTextField_input(ft.TextField):
|
||||
def __init__(self, on_change, on_submit, label="Ваше имя", hint_text="Введите текст...", prefix_icon=None, suffix_icon=None):
|
||||
super().__init__(
|
||||
|
||||
label=label,
|
||||
hint_text=hint_text,
|
||||
filled=True, # заливка фона
|
||||
bgcolor=clolors.ferst, # цвет заливки
|
||||
border_color=clolors.laer2, # цвет границы
|
||||
border_radius=12, # скругление углов
|
||||
label_style=ft.TextStyle(
|
||||
color=clolors.laer3,
|
||||
weight=ft.FontWeight.BOLD,
|
||||
),
|
||||
hint_style=ft.TextStyle(
|
||||
color=clolors.laer1,
|
||||
italic=True,
|
||||
),
|
||||
text_style=ft.TextStyle(
|
||||
color=clolors.laer3,
|
||||
size=16,
|
||||
),
|
||||
prefix_icon=prefix_icon,
|
||||
suffix_icon=suffix_icon,
|
||||
on_change=on_change,
|
||||
on_submit=on_submit,
|
||||
)
|
||||
|
||||
class CastomButton(ft.Button):
|
||||
|
||||
Reference in New Issue
Block a user