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:
Lucas 2025-01-06 11:40:17 +08:00 • committed by GitHub
commit 2490f698c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}