edge_to_edge_system_ui 0.1.0-dev.1
edge_to_edge_system_ui: ^0.1.0-dev.1 copied to clipboard
Flutter plugin providing an opinionated Edge-to-Edge system UI controller with a Kotlin implementation for Android.
edge_to_edge_system_ui #
A small Flutter plugin that exposes an Android Kotlin implementation to control edge-to-edge system UI (status/navigation bars) and surface insets. Designed as a lightweight plugin suitable for inclusion on pub.dev.
Features
- Query system inset sizes and whether edge-to-edge mode is enabled
- Enable/disable edge-to-edge at runtime
- Apply status/navigation bar colors and icon brightness
Usage
- Add the plugin to your pubspec (local or on pub.dev)
- Call
EdgeToEdgeSystemUIKotlin.instance.initialize()on app startup - Use
getSystemInfo(),enableEdgeToEdge(),disableEdgeToEdge()andsetSystemUIStyle(...)as needed.
Example code is included in the example/ folder.
Publishing
- Update
publish_toinpubspec.yamlto point tohttps://pub.dev. - Run
flutter pub publish --dry-runandflutter pub publishwhen ready.
Notes
- The plugin only implements Android in Kotlin currently. iOS and other platforms are no-ops.
- The plugin returns inset sizes in logical pixels (dp) to match Flutter's
MediaQuery.