ElementTextField constructor

const ElementTextField({
  1. Key? key,
  2. TextAlign? textAlign,
  3. int? maxLines,
  4. int? minLines,
  5. required ElementEditorController controller,
  6. required MeshElement element,
  7. required String attributeName,
  8. required TextStyle style,
  9. Color cursorColor = Colors.green,
  10. Color selectionColor = defaultSelectionColor,
  11. Color editingBackground = const Color.from(alpha: .1, red: 1, green: 1, blue: 1),
})

Implementation

const ElementTextField({
  super.key,
  this.textAlign,
  this.maxLines,
  this.minLines,
  required this.controller,
  required this.element,
  required this.attributeName,
  required this.style,
  this.cursorColor = Colors.green,
  this.selectionColor = defaultSelectionColor,
  this.editingBackground = const Color.from(alpha: .1, red: 1, green: 1, blue: 1),
});