Helper functions to share location data using InheritedWidgets
This plugin is also available on pub
For help on editing package code, view the documentation.
Add this to your package's pubspec.yaml file:
dependencies: location_context: ^1.0.1+1
You can install packages from the command line:
$ flutter packages get
Alternatively, your editor might support
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|1.0.3+1||Aug 24, 2018|
|1.0.3||Aug 24, 2018|
|1.0.2||Aug 4, 2018|
|1.0.1+1||Aug 3, 2018|
|1.0.1||Jul 19, 2018|
|1.0.0||Jul 17, 2018|
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]
We analyzed this package on May 8, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
lib/src/context.dart. (-44.03 points)
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.
lib/src/position.dart. (-0.50 points)
lib/src/position.dart reported 1 hint:
line 23 col 3: The member '_fromMap' is annotated with 'visibleForTesting', but this annotation is only meaningful on declarations of public members.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
location_context.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.
|Dart SDK||>=1.20.1 <3.0.0|