GhosttyTerminalView constructor

const GhosttyTerminalView({
  1. required GhosttyTerminalController controller,
  2. Key? key,
  3. bool autofocus = false,
  4. FocusNode? focusNode,
  5. Color backgroundColor = const Color(0xFF0A0F14),
  6. Color foregroundColor = const Color(0xFFE6EDF3),
  7. Color chromeColor = const Color(0xFF121A24),
  8. double fontSize = 14,
  9. double lineHeight = 1.35,
  10. String? fontFamily,
  11. List<String>? fontFamilyFallback,
  12. String? fontPackage,
  13. double letterSpacing = 0,
  14. double cellWidthScale = 1,
  15. GhosttyTerminalRendererMode renderer = GhosttyTerminalRendererMode.formatter,
  16. EdgeInsets padding = const EdgeInsets.all(12),
  17. GhosttyTerminalPalette palette = GhosttyTerminalPalette.xterm,
  18. Color cursorColor = const Color(0xFF9AD1C0),
  19. Color selectionColor = const Color(0x665DA9FF),
  20. Color hyperlinkColor = const Color(0xFF61AFEF),
  21. GhosttyTerminalCopyOptions copyOptions = const GhosttyTerminalCopyOptions(),
  22. GhosttyTerminalWordBoundaryPolicy wordBoundaryPolicy = const GhosttyTerminalWordBoundaryPolicy(),
  23. double selectionAutoScrollEdgeInset = 28,
  24. ValueChanged<GhosttyTerminalSelection?>? onSelectionChanged,
  25. ValueChanged<GhosttyTerminalSelectionContent<GhosttyTerminalSelection>?>? onSelectionContentChanged,
  26. Future<void> onCopySelection(
    1. String text
    )?,
  27. Future<String?> onPasteRequest()?,
  28. Future<void> onOpenHyperlink(
    1. String uri
    )?,
})

Implementation

const GhosttyTerminalView({
  required this.controller,
  super.key,
  this.autofocus = false,
  this.focusNode,
  this.backgroundColor = const Color(0xFF0A0F14),
  this.foregroundColor = const Color(0xFFE6EDF3),
  this.chromeColor = const Color(0xFF121A24),
  this.fontSize = 14,
  this.lineHeight = 1.35,
  this.fontFamily,
  this.fontFamilyFallback,
  this.fontPackage,
  this.letterSpacing = 0,
  this.cellWidthScale = 1,
  this.renderer = GhosttyTerminalRendererMode.formatter,
  this.padding = const EdgeInsets.all(12),
  this.palette = GhosttyTerminalPalette.xterm,
  this.cursorColor = const Color(0xFF9AD1C0),
  this.selectionColor = const Color(0x665DA9FF),
  this.hyperlinkColor = const Color(0xFF61AFEF),
  this.copyOptions = const GhosttyTerminalCopyOptions(),
  this.wordBoundaryPolicy = const GhosttyTerminalWordBoundaryPolicy(),
  this.selectionAutoScrollEdgeInset = 28,
  this.onSelectionChanged,
  this.onSelectionContentChanged,
  this.onCopySelection,
  this.onPasteRequest,
  this.onOpenHyperlink,
});