highlightable 1.0.4 copy "highlightable: ^1.0.4" to clipboard
highlightable: ^1.0.4 copied to clipboard

outdated

A text widget that makes it easy to highlight any letter/word you want


Package Logo

License: MIT License: MIT CONTRIBUTING

Installing #

Usage #

Very basic usage: #

HighlightText(                                          
  'Only numbers: [10, 25, 50, ...] will be highlighted',
  // would highlight only numbers.                      
  highlight: Highlight(pattern: r'\d'),                 
)
Screen Shot 2022-03-20 at 18 12 28

Custom usage: #

HighlightText(                                   
  "Hello, Flutter!",                             
  // Would highlight only "Flutter"              
  // full word 'cause [detectWords] is enabled.  
  highlight: Highlight(                          
    words: ["Flutter"],                          
  ),                                             
  caseSensitive: true, // Turn on case-sensitive.
  detectWords: true,                             
  style: TextStyle(                              
    fontSize: 25,                                
    color: Colors.black,                         
    fontWeight: FontWeight.bold,                 
  ),                                             
  highlightStyle: TextStyle(                     
    fontSize: 25,                                
    letterSpacing: 2.5,                          
    color: Colors.white,                         
    backgroundColor: Colors.blue,                
    fontWeight: FontWeight.bold,                 
  ),                                             
)
Screen Shot 2022-03-20 at 18 47 16
14
likes
90
pub points
68%
popularity

Publisher

verified publishertheiskaa.com

A text widget that makes it easy to highlight any letter/word you want

Repository (GitHub)
View/report issues
Contributing

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on highlightable