【发布时间】:2021-11-11 05:34:22
【问题描述】:
我的应用程序中有带有 url 的按钮。当我单击按钮时,它会重定向到网站,但我希望它显示在我的应用程序中。我怎样才能提供这个?
我的代码示例:
Container(
margin: const EdgeInsets.only(top: 380.0),
child: Padding(
padding: const EdgeInsets.all(60.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
SnakeButton(
child: Text(
"Blog",
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 17,
),
),
onTap: () => launch('https://nisaefendioglu.blog'),
),
],
),
),
),
【问题讨论】: