'Flutter - PostHog giving MissingPluginException on capture()

I've just started trying to integrate posthog_flutter's functionality with no success. PostHog is a package that provides user activity tracking. There are 2 functions screen and capture, but my project can't recognize them and gives the error MissingPluginException. The current code I took from the tutorial did not have any tweaks.

Here is my implementation so far: Source

Here is the error log: Error



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source