EditorModelStyleOptions constructor
EditorModelStyleOptions({
- EdgeInsets padding = const EdgeInsets.all(15.0),
- double heightOfContainer = 300,
- Map<
String, TextStyle> theme = myTheme, - String fontFamily = "monospace",
- double? letterSpacing,
- double fontSize = 15,
- double lineHeight = 1.6,
- int tabSize = 2,
- Color editorColor = defaultColorEditor,
- Color editorBorderColor = defaultColorBorder,
- Color editorFilenameColor = defaultColorFileName,
- Color editorToolButtonColor = defaultToolButtonColor,
- Color editorToolButtonTextColor = Colors.white,
- Color editButtonBackgroundColor = defaultEditBackgroundColor,
- Color editButtonTextColor = Colors.black,
- String editButtonName = "Edit",
- double? fontSizeOfFilename,
- TextStyle textStyleOfTextField = const TextStyle(color: Colors.black87, fontSize: 16, letterSpacing: 1.25, fontWeight: FontWeight.w500),
- ToolbarOptions toolbarOptions = const ToolbarOptions(),
- bool placeCursorAtTheEndOnEdit = true,
Implementation
EditorModelStyleOptions(
{this.padding = const EdgeInsets.all(15.0),
this.heightOfContainer = 300,
this.theme = myTheme,
this.fontFamily = "monospace",
this.letterSpacing,
this.fontSize = 15,
this.lineHeight = 1.6,
this.tabSize = 2,
this.editorColor = defaultColorEditor,
this.editorBorderColor = defaultColorBorder,
this.editorFilenameColor = defaultColorFileName,
this.editorToolButtonColor = defaultToolButtonColor,
this.editorToolButtonTextColor = Colors.white,
this.editButtonBackgroundColor = defaultEditBackgroundColor,
this.editButtonTextColor = Colors.black,
this.editButtonName = "Edit",
this.fontSizeOfFilename,
this.textStyleOfTextField = const TextStyle(
color: Colors.black87,
fontSize: 16,
letterSpacing: 1.25,
fontWeight: FontWeight.w500,
),
this.toolbarOptions = const ToolbarOptions(),
this.placeCursorAtTheEndOnEdit = true});