Ever usedcolors.js? How about the same indart?
Here, we will be using thecolorx.dart package.
So, Let's Get Started!
Installing
- pubspec.yaml
dependencies:colorx:^1.0.0
- Then run
dart pub get
orflutter pub get
.
Usage
- main.dart
import'package:colorx/colorx.dart';voidmain(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());}
Made with Extensions on the String class, this can be very productive and helpful...
Example.dart
All Available Methods
- You may lookhere for all available methods...
Top comments(0)
Subscribe
For further actions, you may consider blocking this person and/orreporting abuse