showFeedbackModel function
Implementation
void showFeedbackModel(BuildContext context) {
showModalBottomSheet<FeedbackModel?>(
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(10),
topRight: Radius.circular(10),
),
),
showDragHandle: true,
context: context,
builder: (BuildContext context) {
return Padding(
padding: const EdgeInsets.all(10),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
..._buildFeedbackOptions(context),
_buildCancelOption(context),
],
),
);
},
).then((value) {
if (value != null && context.mounted) {
Navigator.push(context, MaterialPageRoute(builder: (context) => const SendFeedbackPage()));
}
});
}