breakpoints_mq 1.1.0 copy "breakpoints_mq: ^1.1.0" to clipboard
breakpoints_mq: ^1.1.0 copied to clipboard

A lightweight library for implementing Responsive layout grid. Provide window, columns, margings/gutters.

breakpoints_mq #

A lightweight library for implementing Responsive layout grid. Provide window, columns, margings/gutters.

How to use. #

Once you've added breakpoints to your project, you can get breakpoints like this.

final breakpoint = MediaQuery.of(context).breakpoint;

Then, use breakpoint.columns.

GridView.count(
  crossAxisCount: breakpoint.columns,
  children: List.generate(
    100,
    (index) => Padding(
      padding: EdgeInsets.all(breakpoint.gutters / 2),
      child: Card(
        child: Center(
          child: Text('No.${index + 1}'),
        ),
      ),
    ),
  ),
),

If you wont to get more information about breakpoints, see documents.

Requirements #

  • Flutter 2.0.0 or higher
0
likes
150
points
883
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight library for implementing Responsive layout grid. Provide window, columns, margings/gutters.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on breakpoints_mq