Demonstrates a basic implementation of an iOS "Home Widget" in Flutter.
This app shows a slightly augmented Counter App which has an associated HomeWidget.
CounterWidget-1.mov
It uses the home_widget
package to communicate with the iOS Home Screen Widget and to render a
Flutter Widget off-screen which serves as the background image for the Home Widget.
For detailed instructions on how to add a Home Screen Widget to your app see the Flutter code lab: https://codelabs.developers.google.com/flutter-home-screen-widgets#0
For more info the code inside of this repo as well as the structure of Home Widgets themselves, please see our related blog post: https://blog.gskinner.com/archives/2024/06/flutter-ios-home-widgets-deep-dive.html(opens in a new tab)