swiss_public_transport_plugin 0.1.4

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


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:

  swiss_public_transport_plugin: ^0.1.4

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';
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 Aug 18, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19
  • Flutter: 1.7.8+hotfix.4


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Document public APIs. (-0.72 points)

105 out of 106 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.

Format lib/swiss_public_transport_plugin.dart.

Run flutter format to format lib/swiss_public_transport_plugin.dart.


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.15.7 0.15.8
location ^2.3.5 2.3.5
Transitive dependencies
async 2.3.0
charcode 1.1.2
collection 1.14.11 1.14.12
http_parser 3.1.3
meta 1.1.6 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