Horje
flutter textspan onclick Code Example
[Solved] - flutter textspan onclick Code Example
Try following codes
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'),
        )
      ]),
    );
Date: 2022-05-21 05:02:10
Category: dart
More for You