screen_corners 0.6.0 screen_corners: ^0.6.0 copied to clipboard
Get how much the corners are rounded. All in a single, global, importable and easy singleton.
Screen Corners #
The easiest way to get your screen's border radius #
NOTE: ONLY WORKING ON IOS CURRNETLY! #
How to #
Add this to your main.dart
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await ScreenCorners.initScreenCorners();
runApp(const ScreenCornersApp());
}
and then voila
SomeWidget(
borderRadius: ScreenCorners.corner.value
)
Fin #
No idea if I can explain it any better than that