【发布时间】:2020-01-08 16:04:18
【问题描述】:
这是我的代码。
Center(
child: SingleChildScrollView(
child: Container(
child: RichText(
text: TextSpan(
//style: DefaultTextStyle.of(context).style,
children: [
TextSpan(
text: 'URL IS IN HERE.COM!\n',
style: TextStyle(letterSpacing: 1, fontSize: 26.0, fontWeight: FontWeight.bold, color: Colors.black)
),
...
我想点击文本字符串('URL IS IN HERE.COM!)并让它在我的 webview 小部件中打开?
【问题讨论】:
-
您是否已经实现了 WebView?你想在应用程序外打开网址吗?您想在您的应用程序中打开浏览器的选项卡吗?这些都是不同的解决方案。请在您的帖子中添加更多信息。
-
是的,我已经在单独的小部件中实现了一个 WebView。所以我想使用 WebView 小部件在我的应用程序中打开 URL。我不想在应用程序外部或任何浏览器选项卡之外打开,谢谢!
-
这是我的 WebView 小部件。
标签: url flutter webview textspan