Compare commits

...
3 Commits
Author SHA1 Message Date
Morn 1e5491055d fix: the cursor constantly blinking on Android (#7245) 2025-01-20 14:47:48 +08:00
Lucas.Xu 8694db4a31 chore: update editor version 2025-01-15 17:41:13 +08:00
Lucas.Xu ec01c969d1 fix: nested block padding issues 2025-01-15 15:59:34 +08:00
4 changed files with 17 additions and 8 deletions

No files matched your search

@@ -105,9 +105,16 @@ BlockComponentConfiguration _buildDefaultConfiguration(BuildContext context) {
return const EdgeInsets.symmetric(vertical: 5.0);
},
indentPadding: (node, textDirection) => textDirection == TextDirection.ltr
? const EdgeInsets.only(left: 26.0)
: const EdgeInsets.only(right: 26.0),
indentPadding: (node, textDirection) {
double padding = 26.0;
// only add indent padding for the top level node to align the children
if (UniversalPlatform.isMobile && node.path.length == 1) {
padding += EditorStyleCustomizer.nodeHorizontalPadding;
}
return textDirection == TextDirection.ltr
? EdgeInsets.only(left: padding)
: EdgeInsets.only(right: padding);
},
);
return configuration;
}
@@ -287,7 +287,9 @@ class _ToggleListBlockComponentWidgetState
}
return Padding(
padding: indentPadding,
padding: UniversalPlatform.isMobile
? const EdgeInsets.symmetric(horizontal: 26.0)
: indentPadding,
child: FlowyButton(
text: FlowyText(
buildPlaceholderText(),
+2 -2
View File
@@ -61,8 +61,8 @@ packages:
dependency: "direct main"
description:
path: "."
ref: "5352bb4"
resolved-ref: "5352bb4a2483039b97073f40c32a93f8fc5e7242"
ref: a2e49e2
resolved-ref: a2e49e21edf93c4895ad25e87ba0a13ec0a781b2
url: "https://github.com/AppFlowy-IO/appflowy-editor.git"
source: git
version: "4.0.0"
+2 -2
View File
@@ -169,12 +169,12 @@ dependency_overrides:
url_protocol:
git:
url: https://github.com/LucasXu0/flutter_url_protocol.git
commit: 737681d
commit: 737681
appflowy_editor:
git:
url: https://github.com/AppFlowy-IO/appflowy-editor.git
ref: "5352bb4"
ref: "a2e49e2"
appflowy_editor_plugins:
git: