Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The getter 'MediaType' isn't defined for the class '_MessageInputState' #34

Closed
lukepighetti opened this issue Apr 15, 2020 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@lukepighetti
Copy link

Every time I try to run a project with stream_chat_flutter: ^0.1.23 I get this error when building on iOS.

../../../.pub-cache/hosted/pub.dartlang.org/stream_chat_flutter-0.1.23/lib/src/message_input.dart:655:24: Error: The getter 'MediaType' isn't defined for the class '_MessageInputState'.
 - '_MessageInputState' is from 'package:stream_chat_flutter/src/message_input.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/stream_chat_flutter-0.1.23/lib/src/message_input.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'MediaType'.
          contentType: MediaType.parse(lookupMimeType(filename)),
                       ^^^^^^^^^
@imtoori
Copy link
Contributor

imtoori commented Apr 16, 2020

Hi @lukepighetti , can you try the last version? It should be ok now

@imtoori imtoori added the bug Something isn't working label Apr 16, 2020
@imtoori imtoori self-assigned this Apr 16, 2020
@nosmirck
Copy link
Contributor

@lukepighetti try latest version but first run a flutter clean then get and upgrade packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants