Adding HomeScreenWidgets to your Flutter App
summary
Live demo adds Home Screen widgets to a Flutter app for iOS and Android using native pieces plus the home widget tooling, registers an App Group ID (requires paid Apple dev account), creates an iOS widget extension and an Android Glance AppWidgetReceiver, shares state via user defaults / shared preferences so a counter value updates on both platforms, implements a screenshot capture of a Flutter widget for static display, and wires an interactive button via a background Flutter entrypoint. Demo succeeds: counter updates appear on home screens and native code stays compact.
AI-written summary · about
chapters (8)
- 0:00Home screen widgets intro
- 4:01iOS widget extension setup
- 9:18Android widget config
- 11:48Sending data to widgets
- 17:22Updating Android widgets
- 20:08Widgets via screenshots
- 25:18Widget interactivity
- 28:13Widget analytics & promotion
related talks
33mSwiftUI for Flutter Developers
15mTime for Flutter on the Apple Watch
32mBuilding for iOS with Flutter
39mFlutter for Android developers!
50mFlutter in Action: How to build cross-platform app with Dart
47mIntroduction to Cross Platform Development with Flutter
51mFlutter: How Widgets Work
24mKeynote: Flutter
