XWidget Builder Logo

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

  1. Install:
    flutter pub add xwidget dev:xwidget_builder
  1. Initialize your project:
    dart run xwidget_builder:init --new-app
  1. Generate components:
    dart run xwidget_builder:generate
  1. 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:

Android Studio Plugin

Install the Flutter XWidget plugin for EL syntax highlighting, contextual navigation, and component generation.

License

See LICENSE for details.

Libraries