Answers for "textspan click flutter"

0

flutter textspan onclick

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 May-22-2020

Code answers related to "Dart"

Browse Popular Code Answers by Language