HighlightTheme constructor
const
HighlightTheme({
- TextStyle keywordStyle = const TextStyle(color: Color.fromRGBO(182, 87, 0, 1)),
- TextStyle commentStyle = const TextStyle(color: Colors.grey, fontStyle: FontStyle.italic),
- TextStyle multiLineCommentStyle = const TextStyle(color: Colors.grey, fontStyle: FontStyle.italic),
- TextStyle specialIdentifiersStyle = const TextStyle(color: Color.fromRGBO(160, 96, 255, 1)),
- TextStyle numberConstantStyle = const TextStyle(color: Colors.yellow),
- TextStyle stringConstantStyle = const TextStyle(color: Color.fromRGBO(80, 145, 0, 1)),
- TextStyle operatorStyle = const TextStyle(color: Colors.red),
- TextStyle specialCharacterStyle = const TextStyle(color: Colors.white),
- TextStyle identifierStyle = const TextStyle(color: Color.fromRGBO(0, 130, 250, 1)),
- TextStyle functionIdentifierStyle = const TextStyle(color: Color.fromRGBO(220, 120, 140, 1)),
- Color textColor = Colors.white,
- Color bgColor = const Color.fromRGBO(20, 20, 20, 1),
Implementation
const HighlightTheme({
this.keywordStyle = const TextStyle(color:Color.fromRGBO(182, 87, 0, 1)),
this.commentStyle = const TextStyle(color:Colors.grey,fontStyle: FontStyle.italic),
this.multiLineCommentStyle = const TextStyle(color:Colors.grey,fontStyle: FontStyle.italic),
this.specialIdentifiersStyle = const TextStyle(color: Color.fromRGBO(160, 96, 255, 1)),
this.numberConstantStyle = const TextStyle(color: Colors.yellow),
this.stringConstantStyle = const TextStyle(color: Color.fromRGBO(80,145,0,1)),
this.operatorStyle = const TextStyle(color:Colors.red),
this.specialCharacterStyle = const TextStyle(color:Colors.white),
this.identifierStyle = const TextStyle(color: Color.fromRGBO(0,130,250,1)),
this.functionIdentifierStyle = const TextStyle(color: Color.fromRGBO(220,120,140,1)),
this.textColor = Colors.white,
this.bgColor = const Color.fromRGBO(20,20,20,1)
});