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.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:screen_corners/screen_corners.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await ScreenCorners.initScreenCorners();
  runApp(const ScreenCornersApp());
}

class ScreenCornersApp extends StatelessWidget {
  const ScreenCornersApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        useMaterial3: true,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Screen Corners'),
        ),
        body: Center(
          child: Text(
            'Screen Corners: ${ScreenCorners.corner.value}',
            style: Theme.of(context).textTheme.headline4,
          ),
        ),
      ),
    );
  }
}
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