Categories
Mastering Development

How can I iterate over an array of objects which belong to a key value – Flutter

I have a list of data called anchors that has a link to a detailed screen. And each anchor has distribution centers which are an array of nested objects. so I was able to parse an id of each of the anchors to a detailed screen and Oid I am having a challenge to loop […]

Categories
Mastering Development

Flutter : How to disable drag down to close showModalBottomSheet

I want to disable drag down to close the showModalBottomSheet I have already tried using enableDrag:false, When i’m using enableDrag:false, is showing me below error Below is my code modal(BuildContext context) { showModalBottomSheet( context: context, enableDrag:false, isDismissible: false, backgroundColor: Colors.transparent, builder: (context) { return Container( width: MediaQuery.of(context).size.width, child: Stack( alignment: Alignment.topCenter, children: <Widget>[ Container( width: […]