A complete demo app showing all widget types on Android and iOS.
cd example
flutter run- Simple Widget - Bitcoin price tracker with dynamic updates
- Progress Widget - Download progress with circular indicator
- List Widget - Todo list with checkboxes
- Theme Support - Dark theme configuration
- Widget Actions - Tap handling from widgets
Android widgets work out of the box. The example app includes:
- Widget receiver configurations in
AndroidManifest.xml - Widget info XML files in
res/xml/ - Preview layouts in
res/layout/
For iOS, you need to add a Widget Extension to your Xcode project:
- Open
ios/Runner.xcworkspacein Xcode - File → New → Target → Widget Extension
- Name it
GlanceWidgets - Configure App Groups for both targets
- Copy widget files from
glance_widget_ios/example/ios/GlanceWidgets/
See iOS Widget Setup Guide for detailed instructions.
- Long press on home screen
- Select "Widgets"
- Find your app and drag a widget type to home
- Long press on home screen
- Tap "+" in top left corner
- Search for your app name
- Select widget size and tap "Add Widget"