navigateToWebviewByPlatform function

Future navigateToWebviewByPlatform(
  1. BuildContext context,
  2. Widget page
)

Implementation

Future<dynamic> navigateToWebviewByPlatform(BuildContext context, Widget page) async {
  return await showModalBottomSheet(
    context: context,
    builder: (context) => page,
    isScrollControlled: true,
    isDismissible: Platform.isIOS,
    enableDrag: Platform.isIOS,
    useSafeArea: true,
  );
}