notch 1.0.0
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, outlinePath, and safe insets; synchronous and reactive to rotation viaMediaQuery.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.