random_users 0.0.3

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 63

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.

Use this package as a library

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 flutter 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

We analyzed this package on Jun 19, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3

Scores

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

Platforms

Detected platforms: Flutter, web, other

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

Suggestions

  • Package is getting outdated.

    The package was released 90 weeks ago.

  • 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.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 1 hint.

    Strong-mode analysis of lib/src/random_users_base.dart gave the following hint:

    line: 11 col: 51
    'JSON' is deprecated and shouldn't be used.

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