dynamic_form_state 1.0.0 copy "dynamic_form_state: ^1.0.0" to clipboard
dynamic_form_state: ^1.0.0 copied to clipboard

outdated

dynamic_form_state makes it easy to manage a changing widget state with many different types of values, for example a large input for. Initalize dynamic_form_state with any number of dynamic values wi [...]

Dart dynamic_form_state #

Pub Version Master

dynamic_form_state makes it easy to manage a changing widget state with many different types of values, for example a large input form. Initalize dynamic_form_state with any number of dynamic values with default values and access both its setState and values with ease.

Install #

To get this plugin, add dynamic_form_state as a dependency in your pubspec.yaml file. For example:

dependencies:
  dynamic_form_state: ^1.0.0

Usage #

It is possible to add spatial based values to the tree with a geohash or directly with lat lng coordinates.

import 'package:geohashtree/geohashtree.dart';

GeohashTree<String> tree = GeohashTree<String>(); 
tree.add("6g3mc", "iguazu"); 
tree.addLatLng(-25.686667, -54.444722, "also iguazu");

To get all the coordinates in a tree within a radius of 5000 meters from the point 25.6953° S, 54.4367° W use getGeohashesByProximity(). The precision parameter dictates how specific the geohash match should be. Precision 5 return matches of geohash of length 5, which in this case would be all geohashes that start with "6g3mc". Precision 1 return matches of geohash of length 1, which in this case would be all geohashes that start with "6".

List<String> values = tree.getGeohashesByProximity(-25.686667, -54.444722,5000, precision: 9);

Issues #

Please file any issues, bugs or feature requests as an issue on our GitHub page.

Want to Contribute #

If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug or adding a cool new feature) submit a pull request.

Want to Support #

Buy Me A Coffee

0
likes
30
points
3
downloads

Publisher

unverified uploader

Weekly Downloads

dynamic_form_state makes it easy to manage a changing widget state with many different types of values, for example a large input for. Initalize dynamic_form_state with any number of dynamic values with default values and access both its setState and values with ease.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on dynamic_form_state