colorlizer

A new Flutter package which helps in picking random color, random element from list, random numbers and many more

Usage

  • add the dependency to your pubspec.yaml
  dependencies:
    flutter:
      sdk: flutter
    colorlizer:
  • some usage
// create a instance of colorlizer
ColorLizer colorlizer = ColorLizer();

// getrandomcolor
colorlizer.getRandomColors();

// get your wished random colors
colorlizer.getSpecialFiledColor([Colors.red,Colors.green]);

// get random element from  a list
colorlizer.getRandomElementFromList(['Hello','Hallo','How are you']);

// get random number with provided ranges
colorlizer.getRandomNumber(3,78); // pick random number between 3 and 78

Getting Started

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Libraries

colorlizer