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.value
  )

Fin

No idea if I can explain it any better than that

www.alekangelov.com