fix install diogram
This commit is contained in:
@@ -13,7 +13,8 @@ class CastomText(ft.Text):
|
||||
value=text,
|
||||
color=color,
|
||||
size=size,
|
||||
weight=weight
|
||||
weight=weight,
|
||||
max_lines=99,
|
||||
)
|
||||
|
||||
|
||||
@@ -48,7 +49,7 @@ class CastomTextField_input(ft.TextField):
|
||||
class CastomButton(ft.Button):
|
||||
def __init__(self, text, on_click):
|
||||
super().__init__(
|
||||
text,
|
||||
content=text,
|
||||
style=ft.ButtonStyle(
|
||||
color=clolors.ferst,
|
||||
bgcolor=clolors.laer1,
|
||||
@@ -59,6 +60,27 @@ class CastomButton(ft.Button):
|
||||
on_click=on_click
|
||||
)
|
||||
|
||||
|
||||
class CastomIconButton(ft.Button):
|
||||
"""Кнопка с иконкой и текстом."""
|
||||
def __init__(self, text, icon, on_click):
|
||||
super().__init__(
|
||||
content=ft.Row(
|
||||
spacing=8,
|
||||
tight=True,
|
||||
controls=[
|
||||
ft.Icon(icon, color=clolors.ferst, size=18),
|
||||
ft.Text(text, color=clolors.ferst, size=14),
|
||||
],
|
||||
),
|
||||
style=ft.ButtonStyle(
|
||||
color=clolors.ferst,
|
||||
bgcolor=clolors.laer2,
|
||||
text_style=ft.TextStyle(size=14),
|
||||
),
|
||||
on_click=on_click,
|
||||
)
|
||||
|
||||
class CastomDropdown(ft.Dropdown):
|
||||
def __init__(self, label="", hint_text="", options=None, on_change=None):
|
||||
super().__init__(
|
||||
|
||||
Reference in New Issue
Block a user