screen_corners 0.5.0 copy "screen_corners: ^0.5.0" to clipboard
screen_corners: ^0.5.0 copied to clipboard

Get the border radius of your screen

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