【问题标题】:App Crash On Release Mode Implement Flutter Video_Trimmer 0.5.4App Crash On Release Mode 实现 Flutter Video_Trimmer 0.5.4
【发布时间】:2022-07-19 12:20:39
【问题描述】:

应用程序崩溃问题:我的代码工作正常,它在调试模式下工作但不在发布模式下......任何可行的解决方案?

包裹:video_trimmer: ^0.5.4

代码:

TrimEditor(
                    trimmer: _trimmer,
                    durationTextStyle: TextStyle(color: Colors.black),
                    showDuration: true,
                    circleSize: 10.0,
                    viewerHeight: 50.0,
                    viewerWidth: MediaQuery.of(context).size.width*0.9,
                    maxVideoLength: Duration(seconds: 120),
                    onChangeStart: (value) {
                      setState(() {
                        _startValue = value;
                      });
                    },
                    onChangeEnd: (value) {
                      setState(() {
                        _endValue = value;
                      });

                    },
                    onChangePlaybackState: (value) {
                      setState(() {
                        _isPlaying = value;
                      });
                    },
                  ),

保存视频应用程序崩溃:

String video = await _trimmer.saveTrimmedVideo(startValue: _startValue, endValue: _endValue);

【问题讨论】:

    标签: flutter flutter-dependencies flutter-test


    【解决方案1】:

    我也有同样的问题。你找到解决办法了吗?

    【讨论】:

      猜你喜欢
      • 2021-03-27
      • 2013-10-31
      • 1970-01-01
      • 2022-12-19
      • 1970-01-01
      • 1970-01-01
      • 2021-09-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多