这些数据来自JSON中的API,值来自HTML标记。Flutter不是Sported Html音频标记,因此请建议我归档此内容。
"message": "<div class='border-bottom pb-1'>Audio Recording</div><table class='table mt-1 border mb-0 table-hover table-border bg-white table-sm table_format'>\n <tbody><tr>\n <td class='font-small-1'><audio class=\"player\" src=\"https://sr.rity.com/vr/fetchsound/?callid=7fefab-65f7-41-baa5-49a69e33\" preload=\"metadata\" controls></audio></td>\n
字符串
我正在使用这两个插件:-
flutter_html_all: ^3.0.0-alpha.5
flutter_widget_from_html_core: ^0.10.3
型
这是Flutter代码:
child: HtmlWidget( _activityList.message?.toString() ?? "" ),
型
1条答案
按热度按时间ep6jt1vc1#
flutter_widget_from_html_core
不支持音频,这在pub.dev中提到:这些标签需要flutter_widget_from_html:
您需要安装另一个包:
字符串
。然后导入
型
或者,您可以通过删除未使用的包来整理pubspec:
型