MySelf Package

Pub Version GitHub License GitHub issues GitHub stars

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();
mySelfColor.printSuccess(text: "Operation successful");
mySelfColor.printError(text: "Error occurred");
mySelfColor.printWarning(text: "Proceed with caution");
mySelfColor.printRGB(255, 0, 0, "Custom red color");
mySelfColor.colorPrint(Colors.blue, "Blue text");
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.

Libraries

myself