We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import 'package:flutter/material.dart'; import 'package:rich_text_controller/rich_text_controller.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( home: RichTextExample(), ); } } class RichTextExample extends StatelessWidget { RichTextExample({super.key}); final controller = RichTextController( targetMatches: [ MatchTargetItem.text( 'highlight', // Match exact text style: const TextStyle(color: Colors.blue, fontWeight: FontWeight.bold), ), ], onMatch: (matches) { print('Matched: $matches'); }, ); @override Widget build(BuildContext context) { return Scaffold( body: Center( child: TextField( controller: controller, ), ), ); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: