home_widget
0.10.0, released 2 months ago by antonborri.es
Plugin to send data to native home screen widgets on Android and iOS
What it does
HomeWidget provides a unified API for Flutter to communicate with native home screen widgets. It lets you save data, trigger updates, and handle interactions from the widget.
AI-written summary of version 0.10.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display dynamic content on the device home screen
- You want to update the widget from Flutter code
- You need to support both Android and iOS home screen widgets
Skip it when
- You want to render Flutter widgets directly on the home screen
- You need a fully declarative widget system without native code
Strengths
- Unified cross‑platform API
- Supports custom fonts, icons, and widget previews
- Handles null values and baseline alignment
Weaknesses
- Requires native widget implementation
- No Flutter widgets can be rendered on the home screen
- Breaking changes in recent releases
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 2
Create native widgets on Android (XML) and iOS (Swift/ObjC), register them, then call HomeWidget.saveWidgetData and HomeWidget.updateWidget from Flutter.
```dart
HomeWidget.saveWidgetData<String>('id', data);
HomeWidget.updateWidget(name: 'HomeWidgetExampleProvider');
```Alternatives
Packages that do the same job and could replace home_widget.
- device_frame
Provides mock device frames to preview Flutter UI on various device screens.
73Compare - simple_tooltip
A Flutter widget for customizable balloon‑style tooltips.
50Compare - flutter_chen_common
Utility package with networking, logging, theme system, and common UI components.
64Compare - glossy
Provides a GlossyContainer widget for glass‑morphic UI effects in Flutter.
44Compare
Works with
Packages commonly used together with home_widget: ones it builds on, ones built on it, and its own family.