new intarfece

This commit is contained in:
2026-04-06 12:15:09 +05:00
parent fe078b8560
commit 10fb240dcd
17 changed files with 197 additions and 129 deletions

View File

@@ -6,7 +6,7 @@ import api_client
class TakeTestPage(ft.Column):
def __init__(self, page: ft.Page):
self._page = page
self._loading = ft.ProgressRing(width=40, height=40, color=ds.clolors.laer1)
self._loading = ft.ProgressRing(width=ds.s(40), height=ds.s(40), color=ds.clolors.laer1)
super().__init__(
alignment=ft.MainAxisAlignment.CENTER,
horizontal_alignment=ft.CrossAxisAlignment.CENTER,
@@ -27,11 +27,11 @@ class TakeTestPage(ft.Column):
def _render_polls(self, polls: list):
self.controls = [
ft.Container(
border_radius=12,
padding=16,
border_radius=ds.s(12),
padding=ds.s(16),
bgcolor=ds.clolors.laer2,
content=ft.Column(
spacing=6,
spacing=ds.s(6),
controls=[
ds.CastomText(
text=poll.get("title", ""),