media_break_points 0.2.1

Flutter Android iOS web

This package allows you to apply values depending on media breakpoint provided.

Apply values per media breakpoints. Breakpoints are similar to the breakpoints used in bootstrap css framework. https://getbootstrap.com/docs/4.1/layout/overview/#responsive-breakpoints

example #

Media Breakpoint demo

Container c = Container(
    padding: valueFor<EdgeInsetGeometry>(
    context,
    xs:EdgeInsets.only(left: 25, right: 20),
    md:EdgeInsets.only(left: 25, right: 20),
    lg:EdgeInsets.only(left: 25, right: 20),
    )
);
double num = valueFor<double>(
  context, 
  xs:1,
  sm:2,
  md:3,
  lg:4,
  xl:4,
);
2
likes
110
pub points
36%
popularity

This package allows you to apply values depending on media breakpoint provided.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

glenfordwilliams@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on media_break_points