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

Categories
Development

Flutter Form Text Fields Throwing Exception

I have the following form widget in my flutter app: Form( key: this._formKey, child: Stack( alignment: Alignment.topCenter, children: <Widget>[ Card( color: Colors.white, elevation: 2.0, child: Container( constraints: new BoxConstraints( maxHeight: 300.0, ), padding: const EdgeInsets.only( left: 10.0, right: 10.0), child: Column( children: <Widget>[ Container( padding: EdgeInsets.only( top: 10, left: 10, right: 10), child: TextFormField( controller: […]