defaultBBStylesheet function

BBStylesheet defaultBBStylesheet({
  1. TextStyle? textStyle,
})

Returns the default BBCode style.

Implementation

BBStylesheet defaultBBStylesheet({TextStyle? textStyle}) =>
    BBStylesheet(defaultText: textStyle, tags: [
      BoldTag(),
      ItalicTag(),
      UnderlineTag(),
      StrikeThroughTag(),
      ColorTag(),
      HeaderTag(1, 28),
      HeaderTag(2, 26),
      HeaderTag(2, 24),
      HeaderTag(3, 22),
      HeaderTag(4, 20),
      HeaderTag(5, 18),
      HeaderTag(6, 16),
      LeftAlignTag(),
      CenterAlignTag(),
      RightAlignTag(),
      UrlTag(),
      ImgTag(),
      QuoteTag(),
      SpoilerTag(),
      ListTag(
          ListItemStyle(
              "%index%. ",
              const TextStyle(
                  color: Colors.black, fontWeight: FontWeight.bold)),
          ListItemStyle(
              "● ",
              const TextStyle(
                  fontWeight: FontWeight.bold, color: Colors.blueAccent))),
      OrderedList(ListItemStyle("%index%. ",
          const TextStyle(color: Colors.black, fontWeight: FontWeight.bold))),
      UnorderedList(ListItemStyle(
          "● ",
          const TextStyle(
              fontWeight: FontWeight.bold, color: Colors.blueAccent))),
      ListItem()
    ]);