[PR #1791] [MERGED] fix: use window_manager to set minimum window size #4947

Closed
opened 2026-03-23 22:16:32 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/1791
Author: @Merrit
Created: 2/3/2023
Status: Merged
Merged: 2/9/2023
Merged by: @LucasXu0

Base: mainHead: linux_window_scale


📝 Commits (4)

  • 12c475a fix: use window_manager to set minimum window size
  • e65ac17 refactor: only init WidgetsFlutterBinding once
  • a7c6d39 fix: set window minimum size
  • 50ead3f fix: windows manager crash on macOS

📊 Changes

7 files changed (+138 additions, -143 deletions)

View changed files

📝 frontend/app_flowy/lib/main.dart (+15 -2)
📝 frontend/app_flowy/lib/startup/tasks/app_widget.dart (+0 -5)
📝 frontend/app_flowy/linux/flutter/generated_plugin_registrant.cc (+8 -4)
📝 frontend/app_flowy/linux/flutter/generated_plugins.cmake (+2 -1)
📝 frontend/app_flowy/macos/Flutter/GeneratedPluginRegistrant.swift (+6 -4)
📝 frontend/app_flowy/pubspec.lock (+106 -122)
📝 frontend/app_flowy/pubspec.yaml (+1 -5)

📄 Description

Resolves #762
Resolves #1559

Fixes being unable to resize the tiny default window on Linux.

Having window_manager available also gives us the ability to do many window-related operations in the future if desired.

If this is merged I'd next suggest we look at the ability to remember window size & position between launches.


🔄 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/1791 **Author:** [@Merrit](https://github.com/Merrit) **Created:** 2/3/2023 **Status:** ✅ Merged **Merged:** 2/9/2023 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `linux_window_scale` --- ### 📝 Commits (4) - [`12c475a`](https://github.com/AppFlowy-IO/AppFlowy/commit/12c475a3e6fa6c9454785c5db5a154dd488d1782) fix: use window_manager to set minimum window size - [`e65ac17`](https://github.com/AppFlowy-IO/AppFlowy/commit/e65ac17e887fc7b0d1bb6969ad905053f79e4c2e) refactor: only init WidgetsFlutterBinding once - [`a7c6d39`](https://github.com/AppFlowy-IO/AppFlowy/commit/a7c6d39f205c6956f89fb9d591beb86937abb805) fix: set window minimum size - [`50ead3f`](https://github.com/AppFlowy-IO/AppFlowy/commit/50ead3faa356b7a541c2eb6150665957ed55b31c) fix: windows manager crash on macOS ### 📊 Changes **7 files changed** (+138 additions, -143 deletions) <details> <summary>View changed files</summary> 📝 `frontend/app_flowy/lib/main.dart` (+15 -2) 📝 `frontend/app_flowy/lib/startup/tasks/app_widget.dart` (+0 -5) 📝 `frontend/app_flowy/linux/flutter/generated_plugin_registrant.cc` (+8 -4) 📝 `frontend/app_flowy/linux/flutter/generated_plugins.cmake` (+2 -1) 📝 `frontend/app_flowy/macos/Flutter/GeneratedPluginRegistrant.swift` (+6 -4) 📝 `frontend/app_flowy/pubspec.lock` (+106 -122) 📝 `frontend/app_flowy/pubspec.yaml` (+1 -5) </details> ### 📄 Description Resolves #762 Resolves #1559 Fixes being unable to resize the tiny default window on Linux. Having `window_manager` available also gives us the ability to do [many window-related operations](https://pub.dev/packages/window_manager#api) in the future if desired. If this is merged I'd next suggest we look at the ability to remember window size & position between launches. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 22:16:32 +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#4947
No description provided.