r 0.0.1 copy "r: ^0.0.1" to clipboard
r: ^0.0.1 copied to clipboard

A responsiveness helper to make your life easier.

r #

A responsiveness helper that will make your life easier.

Usage #

import 'package:r/r.dart';

...

  @override
  Widget build(BuildContext context) {
    // Call R's constructor at the start of your build, passing
    // the current context.
    R(context);

    // Then call R.foo wherever you need to.
    final screenWidth = R.screenWidth;
    final screenHeight = R.screenHeight;
    final safeAreaLeft = R.safeAreaLeft;
    final safeAreaRight = R.safeAreaRight;
    final safeAreaHorizontal = R.safeAreaHorizontal;
    final safeAreaTop = R.safeAreaTop;
    final safeAreaBottom = R.safeAreaBottom;
    final safeAreaVertical = R.safeAreaVertical;

    ...
  }
2
likes
110
pub points
50%
popularity

Publisher

unverified uploader

A responsiveness helper to make your life easier.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on r