MySelf Package
About
MySelf is a Flutter package that provides functionality for printing colored text in the console. It offers methods to print text in predefined colors, custom RGB colors, material colors, and hexadecimal colors.
They provide Animation, Form validation, and Beautiful Pre-defined Input Decorations.
Features
- Print text in predefined colors for success, error, and warning messages.
- Print text in custom RGB colors.
- Print text in material colors by providing a
Color
object. - Print text in colors specified by hexadecimal color codes.
- Convert hexadecimal color codes to RGB values for color printing.
Installation
To use MySelf in your Flutter project, add it as a dependency in your pubspec.yaml
file:
dependencies:
myself: ^0.0.6
Usage
Import the package in your Dart file:
import 'package:myself/myself.dart';
MySelfColor
Instantiate the MySelfColor
class to utilize its color printing methods:
MySelfColor mySelfColor = MySelfColor();
Print in Default Colors
mySelfColor.printSuccess(text: "Operation successful");
mySelfColor.printError(text: "Error occurred");
mySelfColor.printWarning(text: "Proceed with caution");
Print in RGB Color
mySelfColor.printRGB(255, 0, 0, "Custom red color");
Print in Material Color
mySelfColor.colorPrint(Colors.blue, "Blue text");
Print in Hexadecimal Color
mySelfColor.printHex("#FFA500", "Orange text");
This is only for the MySelfColor Class example. Please check other class in the Others.
Contributing
Contributions to MySelf are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request on GitHub.
License
This package is licensed under the MIT License. See the LICENSE file for details.