random_users 0.0.3

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 61

Random Users Build Status

Just a static list of Random Users to be used for for all things pulled from https://randomuser.me/.

Usage

import 'package:random_users/random_users.dart';

// get the same 1000 users every time.
List<RandomUser> users = getUsers(1000);
print('Users: ${users.map((user) => user.firstName)}');

User data currently includes:

  • firstName
  • lastName
  • phoneNumber
  • userName
  • password
  • email
  • gender
  • largePicture
  • mediumPicture
  • thumbNail

Development

Random Users leverages the dart_dev package for most of its tooling needs, including static analysis, code formatting, running tests, collecting coverage, and serving examples. Check out the dart_dev readme for more information.

Testing - pub run dart_dev test

Formatting - pub run dart_dev format

Changelog

0.0.3

  • Adding a default constructor to RandomUser

0.0.2

  • Readme updates

0.0.1

  • Initial version, created by Stagehand.
  • Initial rollout with lists of users.

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  random_users: "^0.0.3"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:random_users/random_users.dart';
        
Version Uploaded Documentation Archive
0.0.3 Sep 23, 2016 Go to the documentation of random_users 0.0.3 Download random_users 0.0.3 archive
0.0.2 Sep 21, 2016 Go to the documentation of random_users 0.0.2 Download random_users 0.0.2 archive
0.0.1 Sep 21, 2016 Go to the documentation of random_users 0.0.1 Download random_users 0.0.1 archive

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
37 / 100
Health:
Code health derived from static analysis. [more]
100 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
64 / 100
Overall score:
Weighted score of the above. [more]
61

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:random_users/random_users.dart.

Suggestions

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.0.0 <2.0.0
Dev dependencies
analyzer ^0.27.3
coverage ^0.7.2
dart_dev ^1.1.1
dart_style ^0.2.4
dartdoc >=0.8.0 <0.10.0
test ^0.12.4