Skip to content

add proper macos titlebar support#1033

Open
aaravjhamb wants to merge 1 commit into
DonutWare:developfrom
aaravjhamb:feat/macos-titlebar-double-click
Open

add proper macos titlebar support#1033
aaravjhamb wants to merge 1 commit into
DonutWare:developfrom
aaravjhamb:feat/macos-titlebar-double-click

Conversation

@aaravjhamb

@aaravjhamb aaravjhamb commented Jun 17, 2026

Copy link
Copy Markdown

The window uses a full-size content view with a hidden title bar, so the Flutter view covers the entire window and AppKit's default "double-click the title bar to zoom/minimize" never reaches the native title bar.

Pull Request Description

Added a proper macos titlebar that supports macOS actions like double clicking to snap

Issue Being Fixed

Resolves the issue of titlebar not snapping to fullscreen on macOS

Screenshots / Recordings

image

Tested On

  • Android
  • Android TV
  • iOS
  • Linux
  • Windows
  • macOS
  • Web

Checklist

  • If a new package was added, did you ensure it works for all supported platforms? Is the package well maintained
  • [X ] Check that any changes are related to the issue at hand.

@aaravjhamb aaravjhamb force-pushed the feat/macos-titlebar-double-click branch 2 times, most recently from fd2ecda to 7019cca Compare June 17, 2026 23:18
Override sendEvent in MainFlutterWindow so a double-click in the top
title-bar strip performs the native window action, honoring the
"Double-click a window's title bar to" system preference (zoom, minimize,
or do nothing). Needed because the full-size content view with a hidden
title bar means the Flutter view covers the native title bar.
@aaravjhamb aaravjhamb force-pushed the feat/macos-titlebar-double-click branch from 7019cca to a51f853 Compare June 19, 2026 02:06
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.

1 participant