showWebviewDialog function
Implementation
void showWebviewDialog(BuildContext context, String url) {
showModalBottomSheet(
context: context,
barrierColor: Theme.of(context).colorScheme.surface,
useSafeArea: true,
isScrollControlled: true,
enableDrag: false,
builder: (context) {
return Webview(
url: url,
onClosePressed: () => Navigator.of(context).pop(),
);
},
);
}