show method
void
show(
- String selectOption
)
Implementation
void show(String selectOption) async {
showModalBottomSheet(
backgroundColor: DI.theme().colors().mainBackground,
context: context,
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.vertical(
top: Radius.circular(25.0),
),
),
builder: (BuildContext context) {
return StatefulBuilder(builder: (BuildContext context, setState) {
return SizedBox(
child: Padding(
padding: const EdgeInsets.fromLTRB(24, 24, 24, 24),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: <Widget>[
Text(
selectOption,
),
const SizedBox(
height: 30,
),
Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: getPhotoPickerOptions(context))
],
),
),
);
});
});
}