screen_corner_radius
3.0.0, released a year ago by an unverified publisher
Provides the corner radius value of the current device screen for Android and iOS.
WASM-ready
What it does
Fetches the corner radius of the current device screen using native APIs. Returns a ScreenRadius data class that can be integrated directly into your widget layout.
AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to adapt your UI layout to match physical device screen rounded corners on Android and iOS.
- You want a straightforward way to obtain screen corner radius data asynchronously.
Skip it when
- You are targeting platforms other than Android and iOS.
- You do not need to customize your UI layout based on physical device corner curvature.
Strengths
- Simple and straightforward API usage.
- Supports both Android and iOS platforms.
Weaknesses
- Limited platform support (only Android and iOS are documented).
- Depends on undocumented or OS-specific native keys/APIs which might change across OS versions.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
No special setup steps or permissions are documented.
final ScreenRadius? screenRadius = await ScreenCornerRadius.get();Alternatives
Packages that do the same job and could replace screen_corner_radius.
- device_info_plus
Provides general device and system information if you need broader device metrics alongside screen metrics.
93Compare
Works with
Packages commonly used together with screen_corner_radius: ones it builds on, ones built on it, and its own family.