glance_widget_android 0.2.1
glance_widget_android: ^0.2.1 copied to clipboard
Android implementation of the glance_widget plugin using Jetpack Glance.
glance_widget_android #
The Android implementation of glance_widget.
Usage #
This package is endorsed, which means you can simply use glance_widget normally. This package will be automatically included in your app when you do, so you do not need to add it to your pubspec.yaml.
However, if you import this package to use any of its APIs directly, you should add it to your pubspec.yaml as usual.
Requirements #
- Android SDK 26+ (Android 8.0 Oreo)
- Kotlin 2.0+
- Jetpack Compose enabled
Implementation Details #
This package uses:
- Jetpack Glance for widget rendering with Compose-based UI
- DataStore Preferences for widget state management
- Gson for JSON serialization
- Kotlin Coroutines for asynchronous operations
Widget Templates #
Three widget templates are provided:
SimpleGlanceWidget- Title + Value + Subtitle displayProgressGlanceWidget- Circular or linear progress indicatorsListGlanceWidget- Scrollable list with optional checkboxes