openLinkInApp function
打开链接:支持端内 WebView 的平台用半屏;否则 url_launcher 外开。
Implementation
Future<void> openLinkInApp(BuildContext context, String url) async {
final normalized = normalizeHttpUrl(url) ?? url;
await openHttpUrl(
normalized,
context: context,
preferInAppWebView: PlatformCapabilities.supportsInAppWebView,
);
}