Bottomsheet With Get.bottom Sheet Flutter Code Example
Example: set state of bottomsheet flutter
showModalBottomSheet(     context: context,     builder: (context) {       return StatefulBuilder(           builder: (BuildContext context, StateSetter setState /*You can rename this!*/) {         return Container(           height: heightOfModalBottomSheet,           child: RaisedButton(onPressed: () {             setState(() {               heightOfModalBottomSheet += 10;             });           }),         );       }); });
Comments
Post a Comment