Skip to content

Error at Build Stage #487

@IyiKuyoro

Description

@IyiKuyoro

Error Running

Hi, I just installed the latest version of this package 1.1.1, and the build step fails with the following error below when I try to run flutter.

Error

../../flutter/.pub-cache/hosted/pub.dartlang.org/chewie_audio-1.1.1/lib/src/chewie_player.dart:99:17: Error: The method
'inheritFromWidgetOfExactType' isn't defined for the class 'BuildContext'.
 - 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../flutter/packages/flutter/lib/src/widgets/framework.dart').
Try correcting the name to the name of an existing method, or defining a method named 'inheritFromWidgetOfExactType'.
        context.inheritFromWidgetOfExactType(_ChewieAudioControllerProvider) as _ChewieAudioControllerProvider;
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Use Case

Scaffold(
          body: Column(
            children: <Widget>[
              ...,
              Expanded(
                child: ListView(
                  children: [
                    Container(
                      ...,
                      child: Html(
                        data: event.description,
                      ),
                    ),
                    ...,
                  ],
                ),
              ),
            ],
          ),
        );

I tried out some of the older versions and found out that 0.11.1 works. Perhaps there are some configuration steps I am missing? Any help will be appreciated.

Other Info

Last Working Version: 0.11.1
Flutter Channel: master
Flutter version: 1.26.0-2.0.pre.283
Dart Version: 2.12.0

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