Answers for "textspan flutter"

0

textspan flutter

import 'package:flutter/gestures.dart';
...

new RichText(
  text: new TextSpan(text: 'Non touchable. ', children: [
    new TextSpan(
      text: 'Tap here.',
      recognizer: new TapGestureRecognizer()..onTap = () => print('Tap Here onTap'),
    )
  ]),
);
Posted by: Guest on October-08-2021

Browse Popular Code Answers by Language