Use case
We want to embed Flutter in a Fragment that's not hosted by an Activity. But FlutterActivityAndFragmentDelegate.onCreateView unsafely calling getActivity is preventing us from doing that right now. getContext should be equivalent here since that's likely all it needs so this should be a quick fix.
Proposal
Replace getActivity with getContext in FlutterActivityAndFragmentDelegate.onCreateView