nested_mediaquery 0.0.1+1 copy "nested_mediaquery: ^0.0.1+1" to clipboard
nested_mediaquery: ^0.0.1+1 copied to clipboard

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
20
pub points
0%
popularity

Publisher

unverified uploader

A new Flutter package project.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on nested_mediaquery