Flutter路由跳转http连接参数跳转失败

676 阅读1分钟

Flutter路由跳转需要携带http参数时,会产生无法正常跳转, 需要使用URL转码方法

Uri.encodeComponent

Routes.router.navigateTo(context,
    'routePath?urlPaly=${Uri.encodeComponent(url)}');