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

outdated

A lightweight library for implementing Responsive layout grid. Provide body, column, marging.

breakpoints_mq #

A lightweight library for implementing Responsive layout grid. Provide body, column, margin.

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.column.

GridView.count(
  crossAxisCount: breakpoint.column,
  children: List.generate(
    100,
    (index) => Padding(
      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
0
pub points
68%
popularity

Publisher

unverified uploader

A lightweight library for implementing Responsive layout grid. Provide body, column, marging.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on breakpoints_mq