swiss_public_transport_plugin 0.1.5

  • Readme
  • Changelog
  • Example
  • Installing
  • 62

swiss_public_transport_plugin #

A plugin to communicate directly with the Swiss Public Transport backend.

0.0.1 #

  • Inital release

0.0.2 #

  • Updated pugin info

0.0.3 #

  • Updated pugin info
  • Added Licence

0.0.4 #

  • Added repository

0.0.5 #

  • Removed mock implementations

0.0.6 #

  • Improved Packages

0.0.7 #

  • Fixed issue where Android would not build

0.0.8 #

  • Fixed issue where Android would not build

0.1.0 #

  • Fixed issue where number is not a number

0.1.1 #

  • Fixed issue where number is not a number

0.1.2 #

  • Removed debug logs

0.1.3 #

  • Added isWalk Method to Section
  • Added isPublicTransportRide Method to Section
  • Walk is now null when json is empty
  • Walk duration may be null, but walk is still not null
  • Added some missing null checks

0.1.4 #

  • Removed Debug Logs
  • Breaking: Added required paremeter DateTime to Connections

0.1.5 #

  • Updated dependencies

example/README.md

swiss_public_transport_plugin_example #

Demonstrates how to use the swiss_public_transport_plugin plugin.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

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


dependencies:
  swiss_public_transport_plugin: ^0.1.5

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support 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:swiss_public_transport_plugin/swiss_public_transport_plugin.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
26
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
62
Learn more about scoring.

We analyzed this package on Oct 22, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.4

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Document public APIs. (-0.45 points)

105 out of 107 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/models/journey.dart. (-0.50 points)

Analysis of lib/models/journey.dart reported 1 hint:

line 8 col 31: 'onError' is deprecated and shouldn't be used.

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

Analysis of lib/swiss_public_transport_plugin.dart reported 1 hint:

line 4 col 8: Unused import: 'package:swiss_public_transport_plugin/models/connection.dart'.

Format lib/models/station.dart.

Run flutter format to format lib/models/station.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
http ^0.12.0+2 0.12.0+2
intl ^0.16.0 0.16.0
location ^2.3.5 2.3.5
Transitive dependencies
async 2.4.0
charcode 1.1.2
collection 1.14.11 1.14.12
http_parser 3.1.3
meta 1.1.7
path 1.6.4
pedantic 1.8.0+1
sky_engine 0.0.99
source_span 1.5.5
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test