Add SingleChildScrollView (#7620)

This widget is a replacement for ScrollableViewport that uses the new
Scrollable2 machinery. The widget is not based on Slivers but does use the new
scroll behavior classes.
This commit is contained in:
Adam Barth
2017-01-24 15:16:01 -08:00
committed by GitHub
parent f683abd757
commit 559621ca5a
15 changed files with 487 additions and 62 deletions

View File

@@ -334,7 +334,7 @@ class _ExpansionPanelsDemoState extends State<ExpasionPanelsDemo> {
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(title: new Text('Expansion panels')),
body: new ScrollableViewport(
body: new SingleChildScrollView(
child: new Container(
margin: const EdgeInsets.all(24.0),
child: new ExpansionPanelList(

View File

@@ -132,7 +132,7 @@ class FullScreenCodeDialogState extends State<FullScreenCodeDialog> {
child: new CircularProgressIndicator()
);
} else {
body = new ScrollableViewport(
body = new SingleChildScrollView(
child: new Padding(
padding: new EdgeInsets.all(16.0),
child: new RichText(