Make Slider take up whatever space it has. (#10132)

Previously it was (arbitrarily?) set to 144.0 pixels wide.
This commit is contained in:
Ian Hickson
2017-05-17 14:31:55 -07:00
committed by GitHub
parent c67b46e328
commit 61c56ba15f
3 changed files with 105 additions and 26 deletions

View File

@@ -19,7 +19,8 @@ class _SliderDemoState extends State<SliderDemo> {
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(title: const Text('Sliders')),
body: new Center(
body: new Padding(
padding: const EdgeInsets.symmetric(horizontal: 40.0),
child: new Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: <Widget>[