{"id":51529063,"url":"https://github.com/Bbalduzz/flet_math","last_synced_at":"2026-07-27T23:00:33.886Z","repository":{"id":282737253,"uuid":"949461550","full_name":"Bbalduzz/flet_math","owner":"Bbalduzz","description":"render LaTex formulas in flet","archived":false,"fork":false,"pushed_at":"2025-03-19T10:08:25.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-02T20:27:22.184Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bbalduzz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-16T14:17:42.000Z","updated_at":"2025-03-22T09:09:39.000Z","dependencies_parsed_at":"2025-03-16T17:19:08.438Z","dependency_job_id":"958e283c-5679-44c3-b3cb-f9e638a34b12","html_url":"https://github.com/Bbalduzz/flet_math","commit_stats":null,"previous_names":["bbalduzz/flet_math"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bbalduzz/flet_math","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bbalduzz%2Fflet_math","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bbalduzz%2Fflet_math/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bbalduzz%2Fflet_math/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bbalduzz%2Fflet_math/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bbalduzz","download_url":"https://codeload.github.com/Bbalduzz/flet_math/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bbalduzz%2Fflet_math/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35968098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-27T02:00:06.776Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-09T01:00:30.566Z","updated_at":"2026-07-27T23:00:33.791Z","avatar_url":"https://github.com/Bbalduzz.png","language":"Python","funding_links":[],"categories":["Extensions"],"sub_categories":["Community Extensions"],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"30%\" align=\"center\" src=\"https://github.com/user-attachments/assets/03e0bb8f-aead-4dbb-9f3e-a3d18f866514\" alt=\"logo\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  A flet extension to render LaTex formulas\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ctable\u003e\n    \u003ctr\u003e\n      \u003ctd width=\"30%\"\u003e\n        \u003cimg width=\"100%\" src=\"https://github.com/user-attachments/assets/b8ce9b51-c385-422c-8c65-08673158374c\" alt=\"logo\"\u003e\n      \u003c/td\u003e\n      \u003ctd width=\"70%\"\u003e\n        \u003cvideo width=\"100%\" src=\"https://github.com/user-attachments/assets/5ab84e51-4f43-4083-ba0a-2fd5989bfb2f\"\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/table\u003e\n\u003c/div\u003e\n\n## Installation\navailable in pypi:\n```cmd\npip install flet_math\n```\n\n1. Add the dependency to your `pyproject.toml`:\n```toml\ndependencies = [\n    \"flet_math\" # or flet_math @ git+https://github.com/Bbalduzz/flet_math.git\n]\n```\n\n2. Build with `flet build`:\n```cmd\nflet build \u003ctarget\u003e -v\n```\n\n## Basic Usage\n\nHere's a simple example of rendering a mathematical equation:\n\n```python\nimport flet as ft\nfrom flet_math import Math\n\ndef main(page: ft.Page):\n    page.title = \"Flet Math Example\"\n    page.theme_mode = ft.ThemeMode.LIGHT\n    page.padding = 20\n    page.scroll = ft.ScrollMode.AUTO\n\n    page.add(\n        ft.Text(\"Flet Math - LaTeX Rendering\", size=30, weight=ft.FontWeight.BOLD),\n        ft.Divider(),\n        \n        ft.Text(\"Basic equation:\", size=20),\n        Math(\n            tex=r\"E = mc^2\",\n            text_size=24,\n        ),\n    )\n    page.update()\n\nft.app(target=main)\n```\n\n## Properties\n\nThe `Math` control supports the following properties:\n\n### Core Properties\n- `tex` (str): The LaTeX formula to render\n- `text_color` (ColorValue): Color of the rendered text\n- `text_size` (number): Size of the rendered text\n- `font_family` (str): Font family for the text\n- `font_weight` (FontWeight | str): Weight of the font\n- `text_align` (TextAlign): Text alignment\n- `selectable` (bool): Whether the text can be selected\n\n### Layout Properties\n- `cross_axis_alignment` (CrossAxisAlignment): Cross-axis alignment\n- `main_axis_alignment` (MainAxisAlignment): Main-axis alignment\n\n### Control Properties\n- `width` (number): Width of the control\n- `height` (number): Height of the control\n- `expand` (bool): Whether to expand to fill available space\n- `opacity` (number): Opacity of the control\n- `tooltip` (str): Tooltip text\n- `visible` (bool): Whether the control is visible\n- `disabled` (bool): Whether the control is disabled\n\n### Animation Properties\n- `animate_opacity` (bool): Animate opacity changes\n- `animate_position` (bool): Animate position changes\n- `animate_scale` (bool): Animate scale changes\n- `animate_size` (bool): Animate size changes\n- `on_animation_end` (callable): Callback when animation ends\n- `rotate` (number): Rotation angle\n- `scale` (number): Scale factor\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBbalduzz%2Fflet_math","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBbalduzz%2Fflet_math","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBbalduzz%2Fflet_math/lists"}