Overview of home_widget_generator
mainThe home_widget_generator package allows you to define a HomeScreen widget once using a Dart schema and automatically generates the corresponding native code for both iOS and Android. This eliminates the need to manually write SwiftUI (iOS) or Jetpack Glance (Android) code.
Key Relationships:
- It builds on top of the
home_widgetruntime package, which handles the actual data transmission and widget refreshing. - It uses the
home_widget_clitool to discover annotated Dart classes and write the generated files into your Flutter project. - You primarily interact with a generated Dart helper class in your application code, while the native sources are automatically placed in your
ios/andandroid/folders.