Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove java and UnityPlayer changes to the windowmanager so it can be… #14

Merged
merged 1 commit into from
Jul 31, 2019

Conversation

thomas-stockx
Copy link
Collaborator

… fully handled by Flutter

For rendering full screen Unity with Flutter widgets on top:

return Scaffold(
  body: Stack(
  children: <Widget>[
    UnityWidget(
      onUnityViewCreated: onUnityCreated,
    ),
    Positioned(
       /// ...

For rendering a flutter app with a Unity widget inside:

return Scaffold(
  appBar: AppBar(
    title: Text('Title'),
  ),
  body: Stack(
    children: <Widget>[
      Center(
        child: SizedBox(
          height: 300,
          width: 300,
          child: UnityWidget(
            onUnityViewCreated: onUnityCreated,
          ),
        ),
      ),
      Positioned(
        /// ...

This change fixes the status bar overlapping with the AppBar.

@juicycleff
Copy link
Owner

Thanks, @thomas-stockx I had plans fixing all these when I get the time, but so far you have been actively working on it. Promise to be back fully once I am done with my project, which should be soon

@juicycleff juicycleff merged commit 846f78c into juicycleff:master Jul 31, 2019
@thomas-stockx thomas-stockx mentioned this pull request Aug 1, 2019
@chenenyu chenenyu mentioned this pull request Nov 25, 2020
@chenshaxuanjing chenshaxuanjing mentioned this pull request Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants