defaultTextAreaStyles function
Implementation
TextAreaStyles defaultTextAreaStyles() {
return TextAreaStyles(
focused: TextAreaStyleState(
cursorLine: Style().background(const AnsiColor(0)),
cursorLineNumber: Style().foreground(const AnsiColor(240)),
decorationStyles: <String, Style>{
textSearchMatchDecorationKey: Style().underline(),
textSearchActiveMatchDecorationKey: Style()
.background(const AnsiColor(7))
.foreground(const AnsiColor(0)),
textDiagnosticErrorDecorationKey: Style().underline().underlineColor(
const AnsiColor(1),
),
textDiagnosticWarningDecorationKey: Style().underline().underlineColor(
const AnsiColor(3),
),
textDiagnosticInfoDecorationKey: Style().underline().underlineColor(
const AnsiColor(6),
),
textDiagnosticHintDecorationKey: Style().underline().underlineColor(
const AnsiColor(4),
),
},
lineDecorationStyles: <String, Style>{
textActiveLineDecorationKey: Style().background(const AnsiColor(0)),
textActiveLineNumberDecorationKey: Style().foreground(
const AnsiColor(240),
),
textDiagnosticErrorLineDecorationKey: Style(),
textDiagnosticWarningLineDecorationKey: Style(),
textDiagnosticInfoLineDecorationKey: Style(),
textDiagnosticHintLineDecorationKey: Style(),
textDiagnosticErrorLineNumberDecorationKey: Style().foreground(
const AnsiColor(1),
),
textDiagnosticWarningLineNumberDecorationKey: Style().foreground(
const AnsiColor(3),
),
textDiagnosticInfoLineNumberDecorationKey: Style().foreground(
const AnsiColor(6),
),
textDiagnosticHintLineNumberDecorationKey: Style().foreground(
const AnsiColor(4),
),
},
endOfBuffer: Style().foreground(const AnsiColor(0)),
lineNumber: Style().foreground(const AnsiColor(249)),
placeholder: Style().foreground(const AnsiColor(240)),
prompt: Style().foreground(const AnsiColor(7)),
selection: Style()
.background(const AnsiColor(7))
.foreground(const AnsiColor(0)),
text: Style(),
),
blurred: TextAreaStyleState(
cursorLine: Style().foreground(const AnsiColor(245)),
cursorLineNumber: Style().foreground(const AnsiColor(249)),
decorationStyles: <String, Style>{
textSearchMatchDecorationKey: Style().underline(),
textSearchActiveMatchDecorationKey: Style()
.background(const AnsiColor(7))
.foreground(const AnsiColor(0)),
textDiagnosticErrorDecorationKey: Style().underline().underlineColor(
const AnsiColor(1),
),
textDiagnosticWarningDecorationKey: Style().underline().underlineColor(
const AnsiColor(3),
),
textDiagnosticInfoDecorationKey: Style().underline().underlineColor(
const AnsiColor(6),
),
textDiagnosticHintDecorationKey: Style().underline().underlineColor(
const AnsiColor(4),
),
},
lineDecorationStyles: <String, Style>{
textActiveLineDecorationKey: Style().foreground(const AnsiColor(245)),
textActiveLineNumberDecorationKey: Style().foreground(
const AnsiColor(249),
),
textDiagnosticErrorLineDecorationKey: Style(),
textDiagnosticWarningLineDecorationKey: Style(),
textDiagnosticInfoLineDecorationKey: Style(),
textDiagnosticHintLineDecorationKey: Style(),
textDiagnosticErrorLineNumberDecorationKey: Style().foreground(
const AnsiColor(1),
),
textDiagnosticWarningLineNumberDecorationKey: Style().foreground(
const AnsiColor(3),
),
textDiagnosticInfoLineNumberDecorationKey: Style().foreground(
const AnsiColor(6),
),
textDiagnosticHintLineNumberDecorationKey: Style().foreground(
const AnsiColor(4),
),
},
endOfBuffer: Style().foreground(const AnsiColor(0)),
lineNumber: Style().foreground(const AnsiColor(249)),
placeholder: Style().foreground(const AnsiColor(240)),
prompt: Style().foreground(const AnsiColor(7)),
selection: Style()
.background(const AnsiColor(7))
.foreground(const AnsiColor(0)),
text: Style().foreground(const AnsiColor(245)),
),
cursor: TextAreaCursorStyle(
color: const AnsiColor(7),
shape: CursorShape.block,
blink: true,
),
);
}