colored_text 0.0.1 copy "colored_text: ^0.0.1" to clipboard
colored_text: ^0.0.1 copied to clipboard

Fancy highlighted text with color

Colored Text #

Flutter Package for easily express fancy Highlighted Text

it looks like the text marked with a highlighter pen

sample image

Features #

  • this package automatically calculate the size of your text
  • you can define color, fontSize, and textStyle
Parameter Data type Action
color Color color of Text and Highlighter
fontSize double define your textSize (optional)
textStyle TextStyle define with Custom TextStyle (optional)

Getting Started #

  1. Add the latest version of package to your pubspec.yaml (and run flutter pub get)
dependencies:
    colored_text: ^0.0.1
  1. Import the package and use it in your Flutter App.
import 'package:colored_text/colored_text.dart';

Usage #

Basic ColoredText

ColoredText('Red Colored Text', color: Colors.red)

ColoredText with custom fontSize

ColoredText('small Blue Colored Text', color: Colors.blue, fontSize: 12)
ColoredText('big Green Colored Text', color: Colors.green, fontSize:20)

ColoredText with Custom TextStyle

ColoredText(
  'Custom FontStyle',
  color: Colors.amber,
  textStyle: GoogleFonts.dancingScript(
    fontWeight: FontWeight.bold,
    fontSize: 18,
    color: Colors.deepPurple,
  ),
)

Feature request and bugs #

Please file feature requests and bugs at this Issue Tracker


Thank you for your interest

Seunghyun Kwon

1
likes
130
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

Fancy highlighted text with color

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on colored_text