forked from AppFlowy-IO/appflowy-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* main: fix: floating toolbar position error (AppFlowy-IO#598) fix: selection menu positioning on right half of editor (AppFlowy-IO#600) feat: show magnifier when dragging the handlers (AppFlowy-IO#601) fix: editor cannot scroll when editable is false (AppFlowy-IO#599)
- Loading branch information
Showing
8 changed files
with
102 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
lib/src/editor/editor_component/service/selection/mobile_magnifiter.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class MobileMagnifier extends StatelessWidget { | ||
const MobileMagnifier({ | ||
super.key, | ||
required this.size, | ||
required this.offset, | ||
}); | ||
|
||
final Size size; | ||
final Offset offset; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Positioned.fromRect( | ||
rect: Rect.fromCenter( | ||
center: offset.translate(0, -size.height), | ||
width: size.width, | ||
height: size.height, | ||
), | ||
child: IgnorePointer( | ||
child: Magnifier( | ||
size: size, | ||
), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters