Code Generation
XWidget provides a command-line tool for generating inflaters, controllers, icons, and schema files based on your configuration. The generated code ensures that XML-based UI definitions can be properly interpreted and rendered within your Flutter application.
To generate inflaters, controllers, and other required files, run the following command:
To see available options and flags, use:
You can also specify a custom configuration file:
To generate only specific components, use the --only flag:
If you need to support deprecated APIs, use:
The generated files will be placed in the appropriate directories as specified in xwidget_config.yaml.