pushSimpleWeb method

void pushSimpleWeb({
  1. required String url,
  2. String? title,
  3. bool webClientIframe = false,
})

跳转到默认的简易Web界面 url 需要加载的url地址 title appbar的标题 webClientIframe 如果是web端是否是用内置iframe展示,默认为false

Implementation

void pushSimpleWeb({
  required String url,
  String? title,
  bool webClientIframe = false,
}) {
  if (!webClientIframe && isWeb()) {
    url.launch();
  } else {
    push(SimpleWebPage(url: url, title: title));
  }
}