File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed
lib/models/documents/nodes Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change
1
+ ## [ 1.2.1]
2
+ * Indented position not holding while editing.
3
+
1
4
## [ 1.2.0]
2
5
* Fix image button cancel causes crash.
3
6
Original file line number Diff line number Diff line change @@ -208,18 +208,23 @@ class Line extends Container<Leaf?> {
208
208
_unwrap ();
209
209
} else if (blockStyle != parentStyle) {
210
210
_unwrap ();
211
- final block = Block ()..applyAttribute (blockStyle);
212
- _wrap (block);
213
- block.adjust ();
211
+ _applyBlockStyles (newStyle);
214
212
} // else the same style, no-op.
215
213
} else if (blockStyle.value != null ) {
216
214
// Only wrap with a new block if this is not an unset
217
- final block = Block ()..applyAttribute (blockStyle);
218
- _wrap (block);
219
- block.adjust ();
215
+ _applyBlockStyles (newStyle);
220
216
}
221
217
}
222
218
219
+ void _applyBlockStyles (Style newStyle) {
220
+ var block = Block ();
221
+ for (final style in newStyle.getBlocksExceptHeader ().values) {
222
+ block = block..applyAttribute (style);
223
+ }
224
+ _wrap (block);
225
+ block.adjust ();
226
+ }
227
+
223
228
/// Wraps this line with new parent [block] .
224
229
///
225
230
/// This line can not be in a [Block] when this method is called.
Original file line number Diff line number Diff line change 1
1
name : flutter_quill
2
2
description : A rich text editor supporting mobile and web (Demo App @ bulletjournal.us)
3
- version : 1.2.0
3
+ version : 1.2.1
4
4
# author: bulletjournal
5
5
homepage : https://bulletjournal.us/home/index.html
6
6
repository : https://github.com/singerdmx/flutter-quill
You can’t perform that action at this time.
0 commit comments