A new Flutter package which helps in picking random color, random element from list, random numbers and many more.
A new Flutter package which helps in picking random color, random element from list, random numbers and many more
- add the dependency to your [pubspec.yaml]
dependencies: flutter: sdk: flutter colorlizer:
- some usage
// create a instance of colorlizer Colorlizer colorlizer = Colorlizer(); // getrandomcolor colorlizer.getrandomcolor(); // get your wished random colors colorlizer.getspecifiedcolor([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.