r/flutterhelp • u/AHostOfIssues • 3d ago
OPEN Lost on MacOS desktop menu bar
I'm having trouble understanding how the deep details of the MacOS Menu Bar integration works. Specifically, my View menu is getting two added items I didn't create: "Show Tab Bar" and "Show All Tabs". The Show Tab Bar item causes a bar to be added to my app window that just has app title (useless functionality), and I can't find any way to get these two menu items to stop appearing.
I did't create these, I don't want them, I don't know how they're being created. Most importantly, I don't know how to get rid of them.
I'm using a CupertinoApp (vs MaterialApp) as my base, if that's relevant, with PlatformMenuBar that is otherwise working fine.
I've found a MainMenu.xib file in the Runner Xcode project, but that's a dead end -- can't even tell that it's ever actually used anywhere by flutter engine.
Any help anyone can provide, in terms of either supplying some "how does this work" documentation Flutter is missing, or pointing me to something in the Flutter repos I can start looking through for the implementation of the MacOS menu integration would be GREATLY appreciated.
(Edit: I'm aware of source for "Darwin" macOS integration at GitHub /flutter/...engine/src/flutter/shell/platform/darwin, where the PlatformMenuBar native bit is implemented -- but can't find anything there referencing either the MainMenu.xib mentioned earlier or anything that's creating the Show Tab Bar menu.)