Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yuchuanfeng/5d2a9f0cbe48a40b265fba1c52305c6b to your computer and use it in GitHub Desktop.
Save yuchuanfeng/5d2a9f0cbe48a40b265fba1c52305c6b to your computer and use it in GitHub Desktop.
A solution to putting multiple ListViews inside a ScrollView in Flutter
return new Scaffold(
appBar: new AppBar(
title: new Text("Project Details"),
backgroundColor: Colors.blue[800]),
body:
new CustomScrollView(
slivers: <Widget>[
new SliverPadding(padding: const EdgeInsets.only(left: 10.0,right: 10.0,
top: 10.0,bottom: 0.0),
sliver: new SliverList(delegate:
new SliverChildListDelegate(getTopWidgets())),
),
new SliverPadding(padding: const EdgeInsets.all(10.0),
sliver: new SliverList(delegate: new SliverChildListDelegate(
getSfListTiles()
))),
new SliverPadding(padding: const EdgeInsets.all(10.0),
sliver: new SliverList(delegate: new SliverChildListDelegate(
getWorkStatementTiles()
))),
]
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment