[PR #511] [MERGED] feat: frameless window for mac #4162

Closed
opened 2026-03-23 21:36:35 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/511
Author: @vincentdchan
Created: 5/27/2022
Status: Merged
Merged: 5/28/2022
Merged by: @appflowy

Base: mainHead: feature/mac-frameless-window


📝 Commits (1)

  • c4db17f feat: frameless window for mac

📊 Changes

7 files changed (+183 additions, -18 deletions)

View changed files

frontend/app_flowy/lib/core/frameless_window.dart (+67 -0)
📝 frontend/app_flowy/lib/workspace/application/home/home_bloc.dart (+6 -0)
📝 frontend/app_flowy/lib/workspace/application/menu/menu_bloc.dart (+0 -7)
📝 frontend/app_flowy/lib/workspace/presentation/home/home_stack.dart (+14 -1)
📝 frontend/app_flowy/lib/workspace/presentation/home/menu/menu.dart (+24 -10)
📝 frontend/app_flowy/lib/workspace/presentation/home/navigation.dart (+2 -0)
📝 frontend/app_flowy/macos/Runner/MainFlutterWindow.swift (+70 -0)

📄 Description

This PR is implementing a frameless window for AppFlowy on macOS.

Before

Normal State:

image

Collapsed State:

image

After

Normal State:

image

Collapsed State:

image

Implementation detail

  • Hide the title bar of WindowDelegate in Swift
  • Implement movable area in Flutter
    • Send messages through MethodChannel to Cocoa to move the window
  • Handle collapsing state in Flutter by moving the state from MenuBloc to HomeBloc

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/511 **Author:** [@vincentdchan](https://github.com/vincentdchan) **Created:** 5/27/2022 **Status:** ✅ Merged **Merged:** 5/28/2022 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `feature/mac-frameless-window` --- ### 📝 Commits (1) - [`c4db17f`](https://github.com/AppFlowy-IO/AppFlowy/commit/c4db17f73c3634a47d3c9d56744484f361e724eb) feat: frameless window for mac ### 📊 Changes **7 files changed** (+183 additions, -18 deletions) <details> <summary>View changed files</summary> ➕ `frontend/app_flowy/lib/core/frameless_window.dart` (+67 -0) 📝 `frontend/app_flowy/lib/workspace/application/home/home_bloc.dart` (+6 -0) 📝 `frontend/app_flowy/lib/workspace/application/menu/menu_bloc.dart` (+0 -7) 📝 `frontend/app_flowy/lib/workspace/presentation/home/home_stack.dart` (+14 -1) 📝 `frontend/app_flowy/lib/workspace/presentation/home/menu/menu.dart` (+24 -10) 📝 `frontend/app_flowy/lib/workspace/presentation/home/navigation.dart` (+2 -0) 📝 `frontend/app_flowy/macos/Runner/MainFlutterWindow.swift` (+70 -0) </details> ### 📄 Description This PR is implementing a frameless window for AppFlowy on macOS. **Before** Normal State: ![image](https://user-images.githubusercontent.com/2352832/170634672-720a2ca2-fe8b-4c5b-9d8f-d8fb7b91bd08.png) Collapsed State: ![image](https://user-images.githubusercontent.com/2352832/170635284-1dcdc935-3f70-4935-aea6-e0fe8ccd8278.png) **After** Normal State: ![image](https://user-images.githubusercontent.com/2352832/170634785-6ec0250a-05d5-43bc-8c60-1456bef88224.png) Collapsed State: ![image](https://user-images.githubusercontent.com/2352832/170634824-0967f3d9-008e-4f85-9411-8d86014d7491.png) ## Implementation detail - Hide the title bar of WindowDelegate in Swift - Implement movable area in Flutter - Send messages through **MethodChannel** to Cocoa to move the window - Handle collapsing state in Flutter by moving the state from *MenuBloc* to *HomeBloc* --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 21:36:35 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#4162
No description provided.