Skip to content

Commit

Permalink
Merge branch 'main' into feat-zhiya
Browse files Browse the repository at this point in the history
* main:
  chore: bump version 2.2.0 (AppFlowy-IO#650)
  fix: android 14 issues (AppFlowy-IO#649)
  feat: improve ios touch gesture (AppFlowy-IO#648)
  feat: improve android selection gesture (AppFlowy-IO#647)
  • Loading branch information
q200892907 committed Jan 8, 2024
2 parents 8c1d1a9 + 49575bc commit b3f705a
Show file tree
Hide file tree
Showing 17 changed files with 883 additions and 429 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
## 2.2.0
* feat: support customizing the mobile magnifier by @LucasXu0 in ([#625](https://github.com/AppFlowy-IO/appflowy-editor/pull/625))
* feat: support keep editor focus on mobile by @LucasXu0 in ([#628](https://github.com/AppFlowy-IO/appflowy-editor/pull/628))
* feat: support clicking the selection area to disable floating toolbar by @LucasXu0 in ([#632](https://github.com/AppFlowy-IO/appflowy-editor/pull/632))
* feat: adding an ability to have a link check before embedding by @johansutrisno in ([#603](https://github.com/AppFlowy-IO/appflowy-editor/pull/603))
* feat: Add markdown link syntax formatting by @jazima in ([#618](https://github.com/AppFlowy-IO/appflowy-editor/pull/618))
* feat: Table navigation using TAB key by @AnsahMohammad in ([#627](https://github.com/AppFlowy-IO/appflowy-editor/pull/627))
* feat: improve android selection gesture by @LucasXu0 in ([#647](https://github.com/AppFlowy-IO/appflowy-editor/pull/647))
* feat: improve ios touch gesture by @LucasXu0 in ([#648](https://github.com/AppFlowy-IO/appflowy-editor/pull/648))
* fix: indent/outdent doesn't work in not collapsed selection by @LucasXu0 in ([#626](https://github.com/AppFlowy-IO/appflowy-editor/pull/626))
* fix: renamed duplicated shortcut key by @AnsahMohammad in ([#629](https://github.com/AppFlowy-IO/appflowy-editor/pull/629))
* fix: todo list lost focus by @LucasXu0 in ([#633](https://github.com/AppFlowy-IO/appflowy-editor/pull/633))
* fix: resolve dead loop in node_iterator toList by @Linij in ([#623](https://github.com/AppFlowy-IO/appflowy-editor/pull/623))
* fix: active hover on upload image by @johansutrisno in ([#597](https://github.com/AppFlowy-IO/appflowy-editor/pull/597))
* fix:text_decoration_mobile_toolbar_padding by @q200892907 in ([#621](https://github.com/AppFlowy-IO/appflowy-editor/pull/621))
* fix: android 14 issues by @LucasXu0 in ([#649](https://github.com/AppFlowy-IO/appflowy-editor/pull/649))

## 2.1.0
* feat: show magnifier when dragging the handlers by @LucasXu0 in ([#601](https://github.com/AppFlowy-IO/appflowy-editor/pull/601))
* feat: refactor keyboard height observer to support multiple listeners by @LucasXu0 in ([#602](https://github.com/AppFlowy-IO/appflowy-editor/pull/602))
Expand Down
1 change: 1 addition & 0 deletions example/lib/pages/customize_theme_for_editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ class _CustomizeThemeForEditorState extends State<CustomizeThemeForEditor> {
? const EdgeInsets.only(left: 200, right: 200)
: const EdgeInsets.symmetric(horizontal: 20),
cursorColor: Colors.green,
dragHandleColor: Colors.green,
selectionColor: Colors.green.withOpacity(0.5),
textStyleConfiguration: TextStyleConfiguration(
text: GoogleFonts.poppins(
Expand Down
1 change: 1 addition & 0 deletions example/lib/pages/mobile_editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ class _MobileEditorState extends State<MobileEditor> {
EditorStyle _buildMobileEditorStyle() {
return EditorStyle.mobile(
cursorColor: const Color.fromARGB(255, 134, 46, 247),
dragHandleColor: const Color.fromARGB(255, 134, 46, 247),
selectionColor: const Color.fromARGB(50, 134, 46, 247),
textStyleConfiguration: TextStyleConfiguration(
text: GoogleFonts.poppins(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'dart:math' as math;

import 'package:appflowy_editor/appflowy_editor.dart';
import 'package:appflowy_editor/src/editor/editor_component/service/selection/mobile_selection_service.dart';
import 'package:appflowy_editor/src/flutter/overlay.dart';
import 'package:appflowy_editor/src/service/selection/selection_gesture.dart';
import 'package:flutter/material.dart' hide Overlay, OverlayEntry;
Expand Down Expand Up @@ -191,6 +192,30 @@ class _DesktopSelectionServiceWidgetState
return selectable.getPositionInOffset(offset);
}

@override
Selection? onPanStart(
DragStartDetails details,
MobileSelectionDragMode mode,
) {
throw UnimplementedError();
}

@override
Selection? onPanUpdate(
DragUpdateDetails details,
MobileSelectionDragMode mode,
) {
throw UnimplementedError();
}

@override
void onPanEnd(
DragEndDetails details,
MobileSelectionDragMode mode,
) {
throw UnimplementedError();
}

void _onTapDown(TapDownDetails details) {
_clearContextMenu();

Expand Down
Loading

0 comments on commit b3f705a

Please sign in to comment.