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

outdated

This package provides breakpoints to help achieve responsive designs.

flutter_responsive_breakpoints #

Made by Florian LEFEBVRE. Find the package on Pub.dev.

This package provides breakpoints to help achieve responsive designs.

Installation #

Run the following command:

$ flutter pub add flutter_responsive_breakpoints

Documentation #

Breakpoints #

Breakpoint Minimum width
sm 640px
md 768px
lg 1024px
xl 1280px
xxl 1536px

How to use it #

Import the package

import 'package:flutter_responsive_breakpoints/flutter_responsive_breakpoints.dart';

Wrap MaterialApp with Responsive widget

Responsive(builder: (context) => MaterialApp())

Use the function anywhere (after importing the package)

responsive<Color>(def: Colors.red, sm: Colors.blue, xl: Colors.green)
  • def is required
  • all breakpoints are optional

It can be any type: int, Widget, etc...

If you're using the function a lot, you can use r<T>() instead like so:

r<Color>(def: Colors.red, sm: Colors.blue, xl: Colors.green)

Acknowledgements #

Issue and feedback #

If you have any suggestion for including a feature or if something doesn't work, feel free to open a Github issue for us to have a discussion on it.

7
likes
0
pub points
68%
popularity

Publisher

verified publisherflorian-lefebvre.dev

This package provides breakpoints to help achieve responsive designs.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_responsive_breakpoints