notch 1.0.0 copy "notch: ^1.0.0" to clipboard
notch: ^1.0.0 copied to clipboard

Detect the position and shape of the device's camera cutout (notch, hole-punch, Dynamic Island) and use it as the origin of overlays and animations. Android and iOS.

1.0.0 #

Initial release.

  • Notch.of(context): cutout type, bounds, outline Path, and safe insets; synchronous and reactive to rotation via MediaQuery.
  • Notch.resolve(context): adds platform-channel data — the exact cutout path on Android 12+ (DisplayCutout.getCutoutPath(), isExactPath: true) and per-model geometry on iOS (machine-identifier lookup table covering iPhone X through the iPhone 17 family, with a safe-area heuristic fallback for unknown models).
  • NotchOverlay: traces the cutout outline (stroke or fill).
  • NotchEmerge: scales/fades a widget in from the cutout.
  • Swift Package Manager and CocoaPods support on iOS.
2
likes
160
points
11
downloads

Documentation

API reference

Publisher

verified publishermehuldadlani.dev

Weekly Downloads

Detect the position and shape of the device's camera cutout (notch, hole-punch, Dynamic Island) and use it as the origin of overlays and animations. Android and iOS.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on notch

Packages that implement notch