Skip to content

Instantly share code, notes, and snippets.

View webianks's full-sized avatar
🎯
Focusing

Ramankit Singh webianks

🎯
Focusing
View GitHub Profile
showModalBottomSheet(
context: context,
builder: (context) {
return Container(
color: CupertinoColors.white,
height: MediaQuery.of(context).copyWith().size.height / 3,
child: Column(
children: <Widget>[
Align(
alignment: Alignment.topRight,
CupertinoButton(
padding: const EdgeInsets.only(left: 64.0, right: 64.0),
borderRadius: BorderRadius.all(Radius.circular(25)),
color: Color(Const.colorPrimary),
onPressed: () {
if (_validate()) {
performSubmitActions();
}
},
child: new Text(
ListView.builder(
shrinkWrap: true,
padding: EdgeInsets.all(8.0),
itemCount: _filteredChoices.length,
itemBuilder: (BuildContext context, int index) {
return HelperWidgets.getAlertChoiceItem(
this, _filteredChoices[index], index, _selectedId);
})