Skip to content

onChangePlaybackState: Null check operator used on a null value in FixedTrimViewer #268

@ruwfr

Description

@ruwfr

First of all, thanks for your work :)

In my app, I am using your video trimmer like described in the example app:

class _TrimPageState extends State<TrimPage> {
  final Trimmer _trimmer = Trimmer();
...
  @override
  void initState() {
    super.initState();
    _loadVideo();
  }

  void _loadVideo() async {
    await _trimmer.loadVideo(videoFile: File(widget.originalVideoPath));
    setState(() {
      _videoLoaded = true;
    });
  }

On line

widget.onChangePlaybackState!(false);
I always get a Null check operator used on a null value, regardless of what video I have picked.

I am using
video_trimmer: ^5.0.0.

Is there something wrong in my setup? Any help is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions