XWidget Builder
A command-line tool and code generator for XWidget projects. It generates the inflaters, controllers, icons, and XML schema files that XWidget needs to render your UI from XML fragments at runtime — plus a full CLI for deploying to XWidget Cloud and querying analytics.
Features
- Code Generation — Auto-generate type-safe inflaters, icon registrations, controller factories, and XSD schema from simple Dart specs
- Project Scaffolding — Bootstrap a new XWidget project with a single command
- Cloud Deployment — Deploy UI bundles to XWidget Cloud for over-the-air updates without app store review
- Analytics — Query render, download, error, and navigation analytics from the command line
- IDE Integration — Generated XML schema provides code completion, validation, and documentation tooltips
Quick Start
- Install:
flutter pub add xwidget dev:xwidget_builder
- Initialize your project:
dart run xwidget_builder:init --new-app
- Generate components:
dart run xwidget_builder:generate
- Deploy to the cloud (optional):
dart run xwidget_builder:xc cloud login
dart run xwidget_builder:xc cloud deploy -c production -v 1.0.0
Documentation
Full documentation is available at docs.xwidget.dev, including:
- Code Generation — Inflaters, icons, controllers, schema
- Configuration — xwidget_config.yaml reference
- Cloud — Workspaces, projects, channels, deployments
- Analytics — Downloads, renders, errors, transitions
- CLI Reference — All available commands
Android Studio Plugin
Install the Flutter XWidget plugin for EL syntax highlighting, contextual navigation, and component generation.
License
See LICENSE for details.