'how to change webview payment to open in browser in flutter

I want the payment process to be done in the phone browser. But now this operation is done according to the following code in webview. Please help to replace the current mode. this code:

  /// Navigate to Webview payment
  String? orderNum;
  await FluxNavigate.push(
    MaterialPageRoute(
        builder: (context) => PaymentWebview(
              url: url,
              onFinish: (number) async {
                orderNum = number;
              },
            )),
    forceRootNavigator: true,
  );
  if (orderNum != null) {
    cartModel.clearCart();
    await Navigator.push(
      context,
      MaterialPageRoute(
          builder: (context) => WebviewCheckoutSuccessScreen(
                order: Order(number: orderNum),
              )),
    );
  }
  return;
}

/// return success to navigate to Native payment
success!();

}



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source