feat: support customizing cursor width (#654)

This commit is contained in:
Lucas.Xu 2024-01-08 13:54:34 +07:00 • committed by GitHub
commit ba9bcee094
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,6 +103,7 @@ class _DesktopEditorState extends State<DesktopEditor> {
// showcase 1: customize the editor style.
EditorStyle _buildDesktopEditorStyle() {
return EditorStyle.desktop(
cursorWidth: 2.0,
cursorColor: Colors.blue,
selectionColor: Colors.grey.shade300,
textStyleConfiguration: TextStyleConfiguration(