Forked from karanvs/gist:44599464f72988b138f5bc783f423b07
Created
October 11, 2018 06:52
-
-
Save yuchuanfeng/5d2a9f0cbe48a40b265fba1c52305c6b to your computer and use it in GitHub Desktop.
A solution to putting multiple ListViews inside a ScrollView in Flutter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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