Forked from karanvs/gist:44599464f72988b138f5bc783f423b07
Created
August 17, 2020 13:22
-
-
Save e200/3857e0160d6cd344d2a6b46883464341 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