feat: expose text span for text style builder (#1011)
* feat: expose textspan for text style builder * fix: content menu will show when collaborating
This commit is contained in:
parent
9f6a29968e
commit
2490f698c3
1 changed files with 47 additions and 31 deletions
|
|
@ -85,7 +85,7 @@ class _CustomizeThemeForEditorState extends State<CustomizeThemeForEditor> {
|
|||
}
|
||||
return const EdgeInsets.symmetric(vertical: 5);
|
||||
},
|
||||
textStyle: (node) {
|
||||
textStyle: (node, {TextSpan? textSpan}) {
|
||||
if (HeadingBlockKeys.type == node.type) {
|
||||
return const TextStyle(color: Colors.yellow);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue