nested_mediaquery 0.0.1+1 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),
),
);