flutter_highlighted_text 0.0.1
flutter_highlighted_text: ^0.0.1 copied to clipboard
Flutter widget to find, highlight, and enable taps on specific text patterns.
import 'package:flutter/material.dart';
import 'package:flutter_highlighted_text/flutter_highlighted_text.dart';
void main() {
runApp(const MainApp());
}
class MainApp extends StatelessWidget {
const MainApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: Scaffold(
body: Center(
child: HighlightedText(
'Hello World!',
patterns: ['World'],
highLightStyle: TextStyle(
color: Colors.red,
fontWeight: FontWeight.bold,
),
),
),
),
);
}
}