Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

edgarfroes/r

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI

About

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;

    ...
  }

About

A Flutter responsiveness helper to make your life easier.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages