TextEditor constructor
TextEditor({
- required List<
String> fonts, - required void onEditCompleted(),
- List<
Color> ? paletteColors, - Color? backgroundColor,
- String text = '',
- TextStyle? textStyle,
- TextAlign? textAlingment,
- double? minFontSize = 1,
- double? maxFontSize = 100,
- ValueChanged<
TextAlign> ? onTextAlignChanged, - ValueChanged<
TextStyle> ? onTextStyleChanged, - ValueChanged<
String> ? onTextChanged, - EditorDecoration? decoration,
Create a TextEditor widget
fonts list of font families that you want to use in editor.
After edit process completed, onEditCompleted callback will be called with new textStyle, textAlingment and text value
Implementation
TextEditor({
required this.fonts,
required this.onEditCompleted,
this.paletteColors,
this.backgroundColor,
this.text = '',
this.textStyle,
this.textAlingment,
this.minFontSize = 1,
this.maxFontSize = 100,
this.onTextAlignChanged,
this.onTextStyleChanged,
this.onTextChanged,
this.decoration,
});