Ask Your Question
4

The type inferred was PluginRegistry, but FlutterEngine was the expected type, resulting in a type mismatch.

asked 2023-05-30 06:27:27 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-05-30 06:40:02 +0000

plato gravatar image

This error message indicates that a variable is expected to be of type FlutterEngine, but is instead inferred to be of type PluginRegistry. There is a mismatch between the expected and inferred types of the variable.

The PluginRegistry and FlutterEngine are both related to the Flutter framework, but they serve different purposes. The PluginRegistry is responsible for managing the plugins used in an application, while the FlutterEngine is used to run and manage the Flutter application itself.

To resolve this error, you need to ensure that the variable is of the correct type. Check the code where the variable is being used and make sure that it is properly initialized as a FlutterEngine object. If necessary, update any other code that may be causing the type mismatch.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-30 06:27:27 +0000

Seen: 9 times

Last updated: May 30 '23