location_context 1.0.2

  • README.md
  • Installing
  • Versions
  • 54

location_context #

Build Status

Helper functions to share location data using InheritedWidgets

This plugin is also available on pub

Getting Started #

For help getting started with Flutter, view our online documentation. You can also visit us at Flutter Institute

For help on editing package code, view the documentation.

[1.0.1] - 2018-07-18

  • Removing unused import from the test files

[1.0.0] - 2018-07-17

  • Initial release for sharing location data using InheritedWidget

Use this package as a library

1. Depend on it

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

  location_context: ^1.0.2

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter packages get

Alternatively, your editor might support 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:location_context/location_context.dart';
Version Uploaded Documentation Archive
1.0.3+1 Aug 24, 2018 Go to the documentation of location_context 1.0.3+1 Download location_context 1.0.3+1 archive
1.0.3 Aug 24, 2018 Go to the documentation of location_context 1.0.3 Download location_context 1.0.3 archive
1.0.2 Aug 4, 2018 Go to the documentation of location_context 1.0.2 Download location_context 1.0.2 archive
1.0.1+1 Aug 3, 2018 Go to the documentation of location_context 1.0.1+1 Download location_context 1.0.1+1 archive
1.0.1 Jul 19, 2018 Go to the documentation of location_context 1.0.1 Download location_context 1.0.1 archive
1.0.0 Jul 17, 2018 Go to the documentation of location_context 1.0.0 Download location_context 1.0.0 archive
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 May 8, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.0
  • pana: 0.12.15
  • Flutter: 1.5.8


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Fix lib/src/context.dart. (-44.03 points)

Analysis of lib/src/context.dart failed with 2 errors, 1 hint:

line 73 col 37: The method 'listen' isn't defined for the class 'Function'.

line 94 col 42: A value of type '() → Future<Map<String, double>>' can't be assigned to a variable of type 'Map<String, double>'.

line 94 col 42: Await only futures.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and location_context.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.20.1 <3.0.0
flutter 0.0.0
location ^1.3.4 1.4.1 2.3.5
quiver ^0.29.0+1 0.29.0+2 2.0.3
Transitive dependencies
collection 1.14.11
dart2_constant 1.0.2+dart2
matcher 0.12.5
meta 1.1.6 1.1.7
path 1.6.2
sky_engine 0.0.99
stack_trace 1.9.3
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies