Skip to main content

window_placement 0.0.3 copy "window_placement: ^0.0.3" to clipboard
window_placement: ^0.0.3 copied to clipboard

A Flutter plugin capable of telling where an app is displayed on a mobile device display

0.0.3 #

  • WindowPlacementDetector.getBarRegion(edge, extent): where the system places a bar of that thickness along a window edge, clear of the status icons, rounded corners and home indicator (iOS 27.1+, UIView.LayoutRegion.bar(onEdge:extent:)). On the iPhone Duo, a bar on the edge with the status icons starts below them; a top bar ends before them. Null before iOS 27.1 and on Android.

0.0.2 #

  • Supports Dart 3.9 / Flutter 3.35 and later (was Dart 3.10).

0.0.1 #

  • Initial release: WindowPlacementDetector.getPlacement() and WindowPlacementDetector.onPlacementChanged report the window placement (fullscreen, left, right, top, bottom, corner tiles, floatingLeft / floatingTop / floatingRight / floatingBottom, floatingFullWidth, floatingFullHeight, floating) on iOS and Android, plus touchesLeftEdge / touchesTopEdge / touchesRightEdge / touchesBottomEdge.
  • iOS: supports both Swift Package Manager and CocoaPods.
1
likes
160
points
671
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin capable of telling where an app is displayed on a mobile device display

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, meta, plugin_platform_interface

More

Packages that depend on window_placement

Packages that implement window_placement