colorx 1.0.0 copy "colorx: ^1.0.0" to clipboard
colorx: ^1.0.0 copied to clipboard

Colors.JS implementation in dartlang.

colorx.dart #

Please open Issues to provide feedback, and check the dev branch for the latest bleeding-edge updates.

Installation #

dart pub get colorx

OR

flutter pub get colorx

All Available Methods

text colors #

  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white
  • gray
  • grey

bright text colors #

  • brightRed
  • brightGreen
  • brightYellow
  • brightBlue
  • brightMagenta
  • brightCyan
  • brightWhite

background colors #

  • bgBlack
  • bgRed
  • bgGreen
  • bgYellow
  • bgBlue
  • bgMagenta
  • bgCyan
  • bgWhite
  • bgGray
  • bgGrey

bright background colors #

  • bgBrightRed
  • bgBrightGreen
  • bgBrightYellow
  • bgBrightBlue
  • bgBrightMagenta
  • bgBrightCyan
  • bgBrightWhite

styles #

  • reset
  • bold
  • dim
  • italic
  • underline
  • inverse
  • hidden
  • strikethrough

extras #

  • rainbow()
  • zebra()
  • indianFlag()

Usage #

import 'package:colorx/colorx.dart';

void main(List<String> args) {
    print(Colors('Red, Bold and with Blue background').red.bold.bgBlue);
    print('Red, Bold and with Blue background'.red.bold.bgBlue);
    print('This is a raindow text'.rainbow());
    print('This is the INDIAN Flag'.indianFlag());
}

Important #

This is a dart implementation of colors.js. After recent events about Marka, I would like you all to donate to me if you want me to keep maintaing this library. Open Source is a place for all and if you want to keep using libraries like this for free, seriously consider donating to open source developer.

  • UPI - akashpattnaik.github@ybl
  • Bitcoin - 1CtRtERW75oBNk6qmXSfYgQVqxt6NFwvLM (Blockchain - Bitcoin)
  • Bitcoin - 0x67243756d4144d6d3e132baa0660e0bc0cddf59b (Blockchain - BEP.20)
  • Ethereum - 0x67243756d4144d6d3e132baa0660e0bc0cddf59b (Blockchain - Ethereum)
  • TetherUS - 0x67243756d4144d6d3e132baa0660e0bc0cddf59b (Blockchain - BEP.20)
2
likes
130
pub points
64%
popularity

Publisher

unverified uploader

Colors.JS implementation in dartlang.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on colorx