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: […]


How to open screen on each item without losing animation

I want to know how to add click-on items on every position. I have added a gesture detector on the icon but then it loses animation. import ‘package:curved_navigation_bar/curved_navigation_bar.dart’; bottomNavigationBar: CurvedNavigationBar( key: _bottomNavigationKey, index: 2, height: h/15, items: <Widget>[ Icon(Icons.home, size: h/25), Icon(Icons.playlist_add_check, size: h/25), Icon(, size:h/18,color:,), Icon(Icons.message, size: h/25), Icon(Icons.layers_clear, size: h/25), ], color: […]