[PR #423] [MERGED] feat: adds drag and drop support to pages and docs #4126

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/423
Author: @gaganyadav80
Created: 3/24/2022
Status: Merged
Merged: 4/26/2022
Merged by: @appflowy

Base: mainHead: drag_drop_docs


📝 Commits (4)

  • 628e53a feat: adds drag-drop support to sidebar pages
  • 8ab2fe3 feat: adds drag-drop to docs section
  • 9336892 refactor: remove unused code
  • 1946959 Merge branch 'main' into drag_drop_docs

📊 Changes

2 files changed (+170 additions, -37 deletions)

View changed files

📝 frontend/app_flowy/lib/workspace/presentation/home/menu/app/section/section.dart (+101 -17)
📝 frontend/app_flowy/lib/workspace/presentation/home/menu/menu.dart (+69 -20)

📄 Description

Closes #355

Overview:

  • used flutters built-in ReorderableListView.builder() for pages section.
  • used pub package called Reorderables for the need of ReorderableColumn() for docs section.

Both the pages and docs section uses a hash map to store the index for each item to persist it on hot reloads.
Pages use appWidget[index].key.hashCode and Docs use views[index].id to uniquely identify each item.


🔄 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/423 **Author:** [@gaganyadav80](https://github.com/gaganyadav80) **Created:** 3/24/2022 **Status:** ✅ Merged **Merged:** 4/26/2022 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `drag_drop_docs` --- ### 📝 Commits (4) - [`628e53a`](https://github.com/AppFlowy-IO/AppFlowy/commit/628e53adc1c6f28a87db6141a531ab322c70614f) feat: adds drag-drop support to sidebar pages - [`8ab2fe3`](https://github.com/AppFlowy-IO/AppFlowy/commit/8ab2fe3e30e93162a8bf21f62fcf74e197df5fd5) feat: adds drag-drop to docs section - [`9336892`](https://github.com/AppFlowy-IO/AppFlowy/commit/933689269bb5a78c17914c75568883644f415451) refactor: remove unused code - [`1946959`](https://github.com/AppFlowy-IO/AppFlowy/commit/1946959d0167f7f4d158748b097aa9fbf44bcf65) Merge branch 'main' into drag_drop_docs ### 📊 Changes **2 files changed** (+170 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `frontend/app_flowy/lib/workspace/presentation/home/menu/app/section/section.dart` (+101 -17) 📝 `frontend/app_flowy/lib/workspace/presentation/home/menu/menu.dart` (+69 -20) </details> ### 📄 Description Closes #355 Overview: - used flutters built-in `ReorderableListView.builder()` for pages section. - used pub package called `Reorderables` for the need of `ReorderableColumn()` for docs section. Both the pages and docs section uses a hash map to store the index for each item to persist it on hot reloads. Pages use `appWidget[index].key.hashCode` and Docs use `views[index].id` to uniquely identify each item. --- <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:25 +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#4126
No description provided.