emphasize 1.0.0
emphasize: ^1.0.0 copied to clipboard
Lightweight customizable widget to display text with highlighted words or word groups.
example/example.dart
import 'package:emphasize/emphasize.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MaterialApp(home: HomePage()));
}
class HomePage extends StatelessWidget {
const HomePage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
var emphasizedText = Emphasize(
text: 'The quick brown Fox jumps over the lazy Dog',
words: const <String>['brown fox', 'lazy dog'],
caseSensitive: false,
);
return Scaffold(body: Center(child: emphasizedText));
}
}