如何在flutter web中使用glb文件

问题描述 投票:0回答:1

我在 flutter web 应用程序中使用 glb 文件,但他们向我显示了这个错误。

我正在使用这个库版本model_viewer_plus:^1.7.0

为 model_viewer_plus 生成的 HTML:

身体, 模型查看器 { 宽度:100%; 高度:100%; 保证金:0; 填充:0; } /* 其他-css */
flutter 3d
1个回答
0
投票

在 web/index.html 中 > 修改 web/index.html 以加载 JS 标签,如下所示:

© www.soinside.com 2019 - 2024. All rights reserved.