如何在Flutter中使用video_player插件?

时间:2019-02-22 18:15:15

标签: dart flutter video-player flutter-dependencies

我已经在pubspec.yaml文件中包含了最新版本的video_player,截至该问题为止,版本为0.10.0 + 2。但是在运行应用程序时,我在调试控制台中收到以下错误:

=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
/Users/krishna/talhunt/ios/Runner/GeneratedPluginRegistrant.m:6:9: fatal error: 'video_player/VideoPlayerPlugin.h' file not found
#import <video_player/VideoPlayerPlugin.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

如果有任何后果,我在使用"swift"时将-i的值flutter create用于#main-container { overflow-y: auto, height: calc(100vh - 100px) }

0 个答案:

没有答案