flutter_system_events 0.0.1 copy "flutter_system_events: ^0.0.1" to clipboard
flutter_system_events: ^0.0.1 copied to clipboard

A Flutter plugin for listening to system keyboard and lifecycle events on Android and iOS.

flutter_system_events #

A Flutter plugin for listening to system events through a small unified API.

Supported events #

  • Android: keyboard, lifecycle
  • iOS: keyboard, lifecycle

Other platforms currently expose a no-op implementation.

Usage #

await SystemEvents.initialize();

final subscription = SystemEvents.events.listen((event) {
  switch (event) {
    case KeyboardEvent(:final visible, :final height):
      print('keyboard visible=$visible height=$height');
    case LifecycleEvent(:final state):
      print('lifecycle ${state.name}');
  }
});
1
likes
0
points
630
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for listening to system keyboard and lifecycle events on Android and iOS.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on flutter_system_events

Packages that implement flutter_system_events