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

Can't run the main demo #324

Closed
kirill-grouchnikov opened this issue Dec 6, 2022 · 3 comments
Closed

Can't run the main demo #324

kirill-grouchnikov opened this issue Dec 6, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@kirill-grouchnikov
Copy link

The latest clone of the project. Run flutter run from the example folder and choose to run on macOS (my version is 13.0.1):

lib/main.dart:110:7: Error: No named parameter with the name 'child'.
      child: MacosWindow(
      ^^^^^
../../../flutter/packages/flutter/lib/src/widgets/platform_menu_bar.dart:462:9: Context: Found this candidate, but the arguments don't match.
  const PlatformMenuBar({
        ^^^^^^^^^^^^^^^
@kirill-grouchnikov kirill-grouchnikov added the bug Something isn't working label Dec 6, 2022
@kirill-grouchnikov
Copy link
Author

Opening example/lib/main.dart in IntelliJ shows this:
image

@kirill-grouchnikov
Copy link
Author

Replacing child with body in line 110 fixes the issue and makes the app run successfully

@GroovinChip
Copy link
Collaborator

@kirill-grouchnikov I believe you encountered this issue because you were using an older version of Flutter on the stable channel at the time. PlatformMenuBar changed body to child in the latest version by that time.

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

2 participants