feat: support customizing tooltip style (#856)

This commit is contained in:
Lucas.Xu 2024-08-06 17:14:06 +08:00 • committed by GitHub
commit 4c4cc415d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -74,6 +74,13 @@ class _DesktopEditorState extends State<DesktopEditor> {
...textDirectionItems,
...alignmentItems,
],
tooltipBuilder: (context, message, child) {
return Tooltip(
message: message,
preferBelow: false,
child: child,
);
},
editorState: editorState,
textDirection: widget.textDirection,
editorScrollController: editorScrollController,