addMention method

void addMention(
  1. String text,
  2. BuildContext context,
  3. Mention mention
)

Implementation

void addMention(String text, BuildContext context, Mention mention) {
  textSpans.add(TextSpan(
    text: text,
    style: TextStyle(
      fontSize: textStyle.fontSize,
      color: Colors.blue,
    ),
    recognizer: TapGestureRecognizer()
      ..onTap = () {
        Navigator.push(
          context,
          MaterialPageRoute(
              builder: (context) => Profile(actor: mention.did)),
        );
      },
  ));
}