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

how to resizing the window, viewportWidth/viewportHeight changes together. #502

Open
1 task done
djunny opened this issue Oct 11, 2023 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@djunny
Copy link

djunny commented Oct 11, 2023

Affected version

0.14.3

Flutter versions

3.7.12

No same issues found.

  • Yes, I search all issues but not found.

Steps to Reproduce

  1. create macos application
  2. make webf instance
  3. run app
  4. resize the window

Code example

MediaQueryData queryData = MediaQuery.of(context);
Size viewportSize = queryData.size;
Scaffold(
        body: Center(
          child: Column(
            children: [
            Expanded(
                child:WebF(
          viewportWidth: viewportSize.width - queryData.padding.horizontal,
          viewportHeight: viewportSize.height - queryData.padding.vertical,
          bundle: WebFBundle.fromUrl('http://localhost:8080/'),
        ),),
          ])));

Expected results

Keep viewportWidth/viewportHeight consistent with window size.

Actual results

When window resize, viewportWidth/viewportHeight does not change

@djunny djunny added the bug Something isn't working label Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant