feat: support Flutter stable channel (#581)
* feat: adjust toggle list block * chore: upgrade Flutter to master channel * chore: upgrade pbxproj * fix: toolbar copy button not closing on mobile editor * fix: formatting issues and add missing commas * chore: add stable branch to GitHub Actions workflow * chore: add missing trailing commas * chore: adjust indentation padding in block component configuration and unit tests
This commit is contained in:
parent
a47fc6fc71
commit
c7d99913aa
3 changed files with 215 additions and 285 deletions
|
|
@ -391,7 +391,7 @@ void main() {
|
|||
paragraphNode(
|
||||
text: 'س',
|
||||
textDirection: blockComponentTextDirectionRTL,
|
||||
)
|
||||
),
|
||||
],
|
||||
);
|
||||
final editor = tester.editor..addNode(node);
|
||||
|
|
|
|||
|
|
@ -348,7 +348,7 @@ void main() async {
|
|||
expect(delta1.toJson(), [
|
||||
{
|
||||
"insert": "Hello",
|
||||
"attributes": {"bold": true, "italic": true, "underline": true}
|
||||
"attributes": {"bold": true, "italic": true, "underline": true},
|
||||
}
|
||||
]);
|
||||
|
||||
|
|
@ -366,11 +366,11 @@ void main() async {
|
|||
expect(delta2.toJson(), [
|
||||
{
|
||||
"insert": "Hello",
|
||||
"attributes": {"bold": true, "italic": true, "underline": true}
|
||||
"attributes": {"bold": true, "italic": true, "underline": true},
|
||||
},
|
||||
{
|
||||
"insert": "World",
|
||||
"attributes": {"bold": false, "italic": false, "underline": false}
|
||||
"attributes": {"bold": false, "italic": false, "underline": false},
|
||||
},
|
||||
]);
|
||||
|
||||
|
|
@ -415,7 +415,7 @@ void main() async {
|
|||
expect(delta1.toJson(), [
|
||||
{
|
||||
"insert": "Hello",
|
||||
"attributes": {"bold": false, "italic": false, "underline": false}
|
||||
"attributes": {"bold": false, "italic": false, "underline": false},
|
||||
}
|
||||
]);
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ void main() async {
|
|||
final nestedBlock = node.key.currentState!
|
||||
.unwrapOrNull<NestedBlockComponentStatefulWidgetMixin>();
|
||||
|
||||
expect(nestedBlock?.indentPadding.left, 30);
|
||||
expect(nestedBlock?.indentPadding.left, 24);
|
||||
expect(nestedBlock?.indentPadding.right, 0);
|
||||
|
||||
await editor.dispose();
|
||||
|
|
@ -34,7 +34,7 @@ void main() async {
|
|||
final nestedBlock = node.key.currentState!
|
||||
.unwrapOrNull<NestedBlockComponentStatefulWidgetMixin>();
|
||||
|
||||
expect(nestedBlock?.indentPadding.left, 30);
|
||||
expect(nestedBlock?.indentPadding.left, 24);
|
||||
expect(nestedBlock?.indentPadding.right, 0);
|
||||
|
||||
await editor.dispose();
|
||||
|
|
@ -55,7 +55,7 @@ void main() async {
|
|||
.unwrapOrNull<NestedBlockComponentStatefulWidgetMixin>();
|
||||
|
||||
expect(nestedBlock?.indentPadding.left, 0);
|
||||
expect(nestedBlock?.indentPadding.right, 30);
|
||||
expect(nestedBlock?.indentPadding.right, 24);
|
||||
|
||||
await editor.dispose();
|
||||
});
|
||||
|
|
@ -75,7 +75,7 @@ void main() async {
|
|||
.unwrapOrNull<NestedBlockComponentStatefulWidgetMixin>();
|
||||
|
||||
expect(nestedBlock?.indentPadding.left, 0);
|
||||
expect(nestedBlock?.indentPadding.right, 30);
|
||||
expect(nestedBlock?.indentPadding.right, 24);
|
||||
|
||||
await editor.dispose();
|
||||
});
|
||||
|
|
@ -95,7 +95,7 @@ void main() async {
|
|||
.unwrapOrNull<NestedBlockComponentStatefulWidgetMixin>();
|
||||
|
||||
expect(nestedBlock?.indentPadding.left, 0);
|
||||
expect(nestedBlock?.indentPadding.right, 30);
|
||||
expect(nestedBlock?.indentPadding.right, 24);
|
||||
|
||||
await editor.dispose();
|
||||
});
|
||||
|
|
@ -120,7 +120,7 @@ void main() async {
|
|||
.unwrapOrNull<NestedBlockComponentStatefulWidgetMixin>();
|
||||
|
||||
expect(nestedBlock?.indentPadding.left, 0);
|
||||
expect(nestedBlock?.indentPadding.right, 30);
|
||||
expect(nestedBlock?.indentPadding.right, 24);
|
||||
|
||||
final selection = Selection.single(
|
||||
path: [0, 0],
|
||||
|
|
@ -134,7 +134,7 @@ void main() async {
|
|||
final nestedBlockAfter = node.key.currentState!
|
||||
.unwrapOrNull<NestedBlockComponentStatefulWidgetMixin>();
|
||||
|
||||
expect(nestedBlockAfter?.indentPadding.left, 30);
|
||||
expect(nestedBlockAfter?.indentPadding.left, 24);
|
||||
expect(nestedBlockAfter?.indentPadding.right, 0);
|
||||
|
||||
await editor.dispose();
|
||||
|
|
|
|||
Loading…
Reference in a new issue