This reverts commit 92ef2b9ce1.
This requires either runApp() or
WidgetsFlutterBinding.ensureInitialized() to have been called before
using any MethodChannels. Plugins broadly rely on MethodChannels and
right now there's no general requirements that they be constructed
within the runApp call, so the ecosystem breakages from this are broader
than originally thought. Reverting for now.
This commit is contained in:
committed by
GitHub
parent
77e15103da
commit
821602aef3
@@ -36,9 +36,9 @@ Future<String> respondToHostRequestForSplashLog(String _) {
|
||||
|
||||
void createTestChannelBetweenAndroidAndFlutter() {
|
||||
// Channel used for Android to send Flutter changes to the splash display.
|
||||
const BasicMessageChannel<String> testChannel = BasicMessageChannel<String>(
|
||||
final BasicMessageChannel<String> testChannel = BasicMessageChannel<String>(
|
||||
'testChannel',
|
||||
StringCodec()
|
||||
const StringCodec()
|
||||
);
|
||||
|
||||
// Every splash display change message that we receive from Android is either
|
||||
|
||||
Reference in New Issue
Block a user