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
copied to clipboard
  1. Import the package and use it in your Flutter App.
import 'package:colored_text/colored_text.dart';
copied to clipboard

Usage #

Basic ColoredText

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

ColoredText with custom fontSize

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

ColoredText with Custom TextStyle

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

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
31
downloads

Publisher

unverified uploader

Weekly Downloads

2024.08.17 - 2025.03.01

Fancy highlighted text with color

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on colored_text