Skip to content
pubscout

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

$ flutter pub add home_widget
Source repository

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.

Works with

Packages commonly used together with home_widget: ones it builds on, ones built on it, and its own family.