sample_remote_data 1.0.1

sample_remote_data #

A sample Dart package for fetching remote data.


import 'package:sample_remote_data/sample_remote_data.dart';

void main() async {

  // User class is exported from `main.dart` file
  Iterable<User> users = await getUsers();

  // for each item in users, print full name
  users.forEach( ( user ) {
    print( "User ${ } is ${ user.getFullName() }" );
  } );

Use this package as a library

1. Depend on it

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

  sample_remote_data: ^1.0.1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:

import 'package:sample_remote_data/sample_remote_data.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Feb 13, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5

Health suggestions

Fix lib/sample_remote_data.dart. (-0.50 points)

Analysis of lib/sample_remote_data.dart reported 1 hint:

line 14 col 1: Prefer using /// for doc comments.

Fix lib/src/classes.dart. (-0.50 points)

Analysis of lib/src/classes.dart reported 1 hint:

line 1 col 1: Prefer using /// for doc comments.

Fix lib/src/functions.dart. (-0.50 points)

Analysis of lib/src/functions.dart reported 1 hint:

line 12 col 1: Prefer using /// for doc comments.

Maintenance issues and suggestions

Provide a file named (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

The package description is too short. (-13 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
http ^0.12.0+2 0.12.0+4
Transitive dependencies
async 2.4.0
charcode 1.1.3
collection 1.14.12
http_parser 3.1.3
meta 1.1.8
path 1.6.4
pedantic 1.9.0
source_span 1.6.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6