screen_corners 0.6.0 copy "screen_corners: ^0.6.0" to clipboard
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

www.alekangelov.com

3
likes
130
pub points
70%
popularity

Publisher

verified publisheralekangelov.com

Get how much the corners are rounded. All in a single, global, importable and easy singleton.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on screen_corners