freeLineTheme static method

AnySyntaxHighlighterTheme freeLineTheme()

freeLine theme

Implementation

static AnySyntaxHighlighterTheme freeLineTheme() {
  const black = TextStyle(
    color: Colors.black,
  );
  const blackNBold =
      TextStyle(color: Colors.black, fontWeight: FontWeight.bold);
  const comment = TextStyle(
    color: Color.fromRGBO(128, 119, 118, 1),
    fontStyle: FontStyle.italic,
  );
  return const AnySyntaxHighlighterTheme(
      classStyle: black,
      staticStyle: black,
      constructor: black,
      multilineComment: comment,
      comment: comment,
      keyword: blackNBold,
      identifier: black,
      function: black,
      number: TextStyle(
        color: Color.fromRGBO(99, 196, 178, 1),
      ),
      string: TextStyle(
        color: Color.fromRGBO(194, 34, 36, 1),
      ),
      operator: black,
      separator: black,
      method: black,
      private: black,
      lineNumber: TextStyle(color: Colors.black),
      decoration: BoxDecoration(color: Color.fromRGBO(239, 245, 244, 1)),
      fontFeatures: [FontFeature.slashedZero()]);
}