Last active
November 23, 2021 03:30
-
-
Save rurickdev/e5f7daed4058e0d91d7fba668f12c5e3 to your computer and use it in GitHub Desktop.
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
SizedBox( | |
height: MediaQuery.of(context).size.width * 0.75, | |
child: DraggableScrollableSheet( | |
expand: false, | |
initialChildSize: 1.0, | |
minChildSize:0.5, | |
maxChildSize: 1.0, | |
builder: (BuildContext context, ScrollController scrollController) { | |
return Container( | |
color: Colors.blue, | |
child: ListView.builder( | |
controller: scrollController, | |
itemCount: 25, | |
itemBuilder: (BuildContext context, int index) { | |
if(index == 15){ | |
return Wrap( | |
children: [ | |
for(var i in List.generate(7, (i)=>i)) | |
Container( | |
height: 25, | |
width: MediaQuery.of(context).size.width * 0.5, | |
color: Colors.primaries[i] | |
), | |
], | |
); | |
} | |
return ListTile(title: Text('Item $index')); | |
}, | |
), | |
); | |
}, | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment