nested_mediaquery 0.0.1+1

Flutter Android iOS web

A new Flutter package project.

nested_mediaquery #

A Flutter package to change the nested child breakpoints when you query MediaQuery.of(context).size instead of always depending on the screen size.

Getting Started #

return Scaffold(
    appBar: AppBar(
        title: Text(widget.title),
    ),
    body: NestedMediaQuery(
    builder: (context, size) => Center(
        child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: <Widget>[
            Text(
            'Size: $size',
            ),
            Text(
            'You have pushed the button this many times:',
            ),
            Text(
            '$_counter',
            style: Theme.of(context).textTheme.headline4,
            ),
        ],
        ),
    ),
    ),
    floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: Icon(Icons.add),
    ),
);
0
likes
90
pub points
0%
popularity

A new Flutter package project.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

rody.davis.jr@gmail.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on nested_mediaquery