Skip to content

Instantly share code, notes, and snippets.

@rurickdev
Last active November 23, 2021 03:30
Show Gist options
  • Save rurickdev/e5f7daed4058e0d91d7fba668f12c5e3 to your computer and use it in GitHub Desktop.
Save rurickdev/e5f7daed4058e0d91d7fba668f12c5e3 to your computer and use it in GitHub Desktop.
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