SivaramNalliboyana / Randomizer

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

randomizer

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

Tutorial

Usage

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

// getrandomcolor
randomizer.getrandomcolor();

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

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

// get random number with provided ranges
randomizer.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.

About

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

License:Other


Languages

Language:Dart 100.0%