Compare commits
3
Commits
main
...
release/0.8.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e5491055d | ||
|
|
8694db4a31 | ||
|
|
ec01c969d1 |
No files matched your search
+10
-3
@@ -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;
|
||||
}
|
||||
|
||||
+3
-1
@@ -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(),
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user