GitDiffThemeData class

Theme data for GitDiffViewer widgets.

Controls the colors used for diff added/removed lines and context.

Constructors

GitDiffThemeData({Color? addedBackground, Color? addedForeground, Color? removedBackground, Color? removedForeground, Color? contextForeground, Color? headerForeground})
const

Properties

addedBackground Color?
Background color for added lines. Defaults to Theme.success with reduced intensity.
final
addedForeground Color?
Text color for added lines. Defaults to Theme.resolvedOnSuccess.
final
contextForeground Color?
Text color for context (unchanged) lines. Defaults to Theme.muted.
final
hashCode int
The hash code for this object.
no setterinherited
headerForeground Color?
Text color for diff headers (@@ ... @@). Defaults to Theme.primary.
final
removedBackground Color?
Background color for removed lines. Defaults to Theme.error with reduced intensity.
final
removedForeground Color?
Text color for removed lines. Defaults to Theme.onError.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Color? addedBackground, Color? addedForeground, Color? removedBackground, Color? removedForeground, Color? contextForeground, Color? headerForeground}) GitDiffThemeData
Copy with selective overrides.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited