substring_highlight 1.0.24 substring_highlight: ^1.0.24 copied to clipboard
Highlight Flutter text at the character-level for customizable and simple search term highlighting.
import 'package:flutter/material.dart';
import 'package:substring_highlight/substring_highlight.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(new MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
home: Scaffold(
body: Center(
child: SubstringHighlight(
text: 'this highlights all the th\'s', term: 'th'))),
);
}
}