SmartSyntaxWidgetTheme constructor
const
SmartSyntaxWidgetTheme({
- TextStyle classStyle = const TextStyle(color: Colors.cyanAccent),
- TextStyle staticStyle = const TextStyle(color: Colors.pinkAccent),
- TextStyle constructor = const TextStyle(color: Colors.orangeAccent),
- TextStyle multilineComment = const TextStyle(color: Colors.red, fontStyle: FontStyle.italic),
- TextStyle method = const TextStyle(color: Colors.lightBlueAccent),
- TextStyle private = const TextStyle(color: Colors.grey),
- TextStyle comment = const TextStyle(color: Colors.red, fontStyle: FontStyle.italic),
- TextStyle keyword = const TextStyle(color: Colors.blueAccent, fontWeight: FontWeight.bold),
- TextStyle identifier = const TextStyle(color: Colors.white),
- TextStyle function = const TextStyle(color: Colors.greenAccent),
- TextStyle number = const TextStyle(color: Colors.yellowAccent),
- TextStyle string = const TextStyle(color: Colors.lightGreen),
- TextStyle operator = const TextStyle(color: Colors.deepOrange),
- TextStyle separator = const TextStyle(color: Colors.white),
- double? letterSpacing = 1,
- double? wordSpacing,
- String? fontFamily,
- List<
FontFeature> fontFeatures = const [], - TextStyle lineNumber = const TextStyle(color: Colors.white, fontFeatures: [FontFeature.tabularFigures()]),
- BoxDecoration? codeBackgroundDecoration,
- TextStyle? codeHeaderTextStyle,
- BoxDecoration? codeHeaderDecoration,
Implementation
const SmartSyntaxWidgetTheme({
this.classStyle = const TextStyle(
color: Colors.cyanAccent,
),
this.staticStyle = const TextStyle(
color: Colors.pinkAccent,
),
this.constructor = const TextStyle(
color: Colors.orangeAccent,
),
this.multilineComment = const TextStyle(
color: Colors.red,
fontStyle: FontStyle.italic,
),
this.method = const TextStyle(
color: Colors.lightBlueAccent,
),
this.private = const TextStyle(
color: Colors.grey,
),
final TextStyle comment = const TextStyle(
color: Colors.red,
fontStyle: FontStyle.italic,
),
final TextStyle keyword = const TextStyle(
color: Colors.blueAccent,
fontWeight: FontWeight.bold,
),
final TextStyle identifier = const TextStyle(
color: Colors.white,
),
final TextStyle function = const TextStyle(
color: Colors.greenAccent,
),
final TextStyle number = const TextStyle(
color: Colors.yellowAccent,
),
final TextStyle string = const TextStyle(
color: Colors.lightGreen,
),
final TextStyle operator = const TextStyle(
color: Colors.deepOrange,
),
final TextStyle separator = const TextStyle(
color: Colors.white,
),
this.letterSpacing = 1,
this.wordSpacing,
this.fontFamily,
this.fontFeatures = const [],
this.lineNumber = const TextStyle(
color: Colors.white,
fontFeatures: [FontFeature.tabularFigures()],
),
this.codeBackgroundDecoration,
this.codeHeaderTextStyle,
this.codeHeaderDecoration,
}) : super(
comment: comment,
keyword: keyword,
identifier: identifier,
function: function,
number: number,
string: string,
operator: operator,
separator: separator,
);