Skip to content

Instantly share code, notes, and snippets.

@sbis04
Last active November 28, 2019 04:18
Show Gist options
  • Save sbis04/bd7db579eeb8d243a2dbeafb0b33770c to your computer and use it in GitHub Desktop.
Save sbis04/bd7db579eeb8d243a2dbeafb0b33770c to your computer and use it in GitHub Desktop.
flutterView
View flutterView = Flutter.createView(
MainActivity.this,
getLifecycle(),
"splashRoute"
);
FrameLayout.LayoutParams frameLayout =
new FrameLayout.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT
);
addContentView(flutterView, frameLayout);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment