请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

有关于录屏的章节没有?

1.现在想做一个具有录屏功能的小软件。不知道老师能否提供相关的控件

正在回答

1回答

本课程中没有涉及到录屏,只有拍摄视频的内容。

关于录屏有两种实现思路:

1、因为录屏的工作主要就是在各个端调用API,所以可以自行通过MethodChannel封装录屏NativeAPI实现Flutter录屏;

2、也可以直接引用一个依赖:

flutter_screen_recording

这个库内部也是在Android、iOS两端封装了Native API


可以尝试一下,有什么问题欢迎继续留言

0 回复 有任何疑惑可以回复我~
  • 提问者 慕九州1430253 #1
    收到,谢谢。。
    回复 有任何疑惑可以回复我~ 2022-10-18 10:09:55
  • 提问者 慕九州1430253 #2
    实际操作中发现flutter_screen_recording 已经过期,有没有更好的版本或者其他插件
    
    The plugin `flutter_screen_recording` uses a deprecated version of the Android embedding.
    To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
    If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
    回复 有任何疑惑可以回复我~ 2022-10-31 15:49:49
  • 提问者 慕九州1430253 #3
    实际操作中发现flutter_screen_recording 已经过期,有没有更好的版本或者其他插件
    
    The plugin `flutter_screen_recording` uses a deprecated version of the Android embedding.
    To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
    If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
    回复 有任何疑惑可以回复我~ 2022-11-01 10:46:21
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信