'Flutter: Extend FlutterActivity AND AppCompatActivity

I'm trying to create an android plugin for Flutter that depends on using an AppCompatActivity (as it has a method that takes the embedding appcompatactivity as a parameter).

However, since my main activity extends FlutterActivity, I cannot simultaneously extend AppCompatActivity. I tried implementing it instead, but failed because of some redundancies.

Is there any way to hack this?

Thanks



Sources

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

Source: Stack Overflow

Solution Source