ghostTextStyle property

TextStyle? ghostTextStyle
final

The text style for ghost text (inline suggestions).

This style is applied to the semi-transparent suggestion text that appears inline. Ghost text is set via the controller's setGhostText() method. If not specified, defaults to the editor's base text style with reduced opacity.

Example:

CodeForge(
  ghostTextStyle: TextStyle(
    color: Colors.grey.withOpacity(0.5),
    fontStyle: FontStyle.italic,
  ),
)

Implementation

final TextStyle? ghostTextStyle;