how can I display a chat on flutter?

huangapple go评论78阅读模式
英文:

how can I display a chat on flutter?

问题

在底部,我指出了适用于PHP的代码。

https://board.support/docs/#installation

显示聊天以在您的网站上显示聊天,请将以下脚本包含在每个显示聊天的页面的或

区域中。

<!-- 如果已经加载了jQuery,则不需要此脚本 -->
<script src="[support-board-url]/js/min/jquery.min.js"></script>
<script id="sbinit" src="[support-board-url]/js/main.js"></script>

请帮忙,按顺序解释一下。

webview_flutter_plus

英文:

at the bottom I indicated the code that is suitable for php .

https://board.support/docs/#installation

display the chat to display the chat on your website include the following scripts into the <head></head> or <footer></footer> area of each page where the chat is shown.

&lt;!-- not required if jquery is already loaded --&gt; &lt;script src=&quot;[support-board-url]/js/min/jquery.min.js&quot;&gt;&lt;/script&gt; &lt;script id=&quot;sbinit&quot; src=&quot;[support-board-url]/js/main.js&quot;&gt;&lt;/script&gt;

help please.. in order

webview_flutter_plus

答案1

得分: 1

为了创建一个 WebView,你首先需要一个用于显示内容的网页。你不能简单地获取 PHP 代码并期望它创建一个网页。

创建一个用于聊天的网页,然后你可以使用 Flutter WebView 加载该 URL,或者只使用 Dart 将聊天数据加载到你的 Flutter 应用中。

英文:

In order to create a webview, you must first have a page to display your content.
You can't simply get PHP code and expect it to create a webpage.

Create a webpage for your chat, and then you can use the Flutter webview to load the URL, or just use Dart to load the chat Data into your Flutter app.

huangapple
  • 本文由 发表于 2023年8月8日 23:41:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/76861149.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定