showPopup static method

Future<Map<String, String>?> showPopup(
  1. BuildContext context,
  2. String url, {
  3. dynamic onAuthComplete(
    1. Map<String, String>
    )?,
})

Show browser as a popup dialog

Implementation

static Future<Map<String, String>?> showPopup(
  BuildContext context,
  String url, {
  Function(Map<String, String>)? onAuthComplete,
}) {
  return showDialog<Map<String, String>?>(
    context: context,
    barrierDismissible: true,
    barrierColor: Colors.black54,
    builder: (context) => PopupBrowser(
      url: url,
      onAuthComplete: onAuthComplete,
    ),
  );
}