feat: support customizing cursor width (#654)
This commit is contained in:
parent
49575bc58f
commit
ba9bcee094
1 changed files with 15 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue