English
Open in Telegram

Thread flet-pkg — CLI to generate Flet extension packages from any Flutter package on pub.dev.

3 messages · –
B
Video
flet_pkg.mp4 · 13.1 MB · click to show
flet-pkg — CLI to generate Flet extension packages from any Flutter package on pub.dev. What it does: • Downloads the Flutter package source • Detects whether it is a Service or UI Control • Generates Python bindings, Dart bridge code, enums, events and type mappings Optional features: • AI refinement to detect missing parts • MCP server for AI agent integrations Install: uv add flet-pkg # OR pip install flet-pkg Create a package: flet-pkg create -f battery_plus ⚠️ This tool generates most of the boilerplate automatically, but developers should still review and adapt the generated code depending on the package. GitHub: https://github.com/brunobrown/flet-pkg Docs: https://brunobrown.github.io/flet-pkg If you like this project, please give it a GitHub star ⭐ Feedback and contributions are welcome 😊👍
  1. M
    Brother about this How I must order dart code for flet-pkg can make it in python ?
    1. B
      Hey bro, good question 👍 You don’t need to manually “order” or restructure your Dart code specifically for flet-pkg. What matters is that the Flutter package follows common pub.dev conventions: • Public APIs should be exposed clearly (classes, methods, properties) • Avoid hiding everything behind private/internal APIs • Use well-defined types (enums, classes, streams, etc.) • Keep a clear separation between UI widgets and service logic flet-pkg will analyze the package and try to infer: • whether it’s a Service or UI Control • available methods, properties, and events ⚠️ That said, the generated code is a starting point — you may still need to manually adjust things depending on how complex the package is. 😉😊👍
PPython Flet Global group🌐Python Flet Global group🌐@python_flet · group · Tech
615members10writing in 30 days
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count