【问题标题】:How can I show the website within the application? Flutter如何在应用程序中显示网站?扑
【发布时间】: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'),
                  ),
                ],
              ),
            ),
          ),

【问题讨论】:

    标签: flutter web url


    【解决方案1】:

    这个包应该有帮助...

    'https://pub.dev/packages/webviewx'

    【讨论】:

    • 谢谢。 :) @speeder
    猜你喜欢
    • 1970-01-01
    • 2016-08-23
    • 1970-01-01
    • 2015-07-19
    • 2016-05-16
    • 1970-01-01
    • 2014-03-23
    • 2017-08-07
    • 2017-01-11
    相关资源
    最近更新 更多