Skip to content

Commit

Permalink
build : 1.0.1
Browse files Browse the repository at this point in the history
* update pubspec,readme
  • Loading branch information
liodali committed Nov 16, 2022
1 parent e9a0ce5 commit 3276e36
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ migrate_working_dir/
.packages
build/
.flutter-*
*.sh
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## 1.0.1: add example
## 1.0.0: first version
* create MapControllerHook,MapIsReadyHook
* create and export useMapController,useMapIsReady
36 changes: 35 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### OSM_FLUTTER_HOOKS
## OSM_FLUTTER_HOOKS
![pub](https://img.shields.io/badge/pub-v1.0.1-blue)

## Features

Expand All @@ -17,4 +18,37 @@ add this line in you pubspec
osm_flutter_hooks: #latest
```
## example with osm map
```dart

class SimpleOSM extends HookWidget {
@override
Widget build(BuildContext context) {
final controller = useMapController(initMapWithUserPosition: true);
useMapIsReady(
controller: controller,
mapIsReady: () async {
await controller.setZoom(zoomLevel: 15);
},
);
return OSMFlutter(
controller: controller,
markerOption: MarkerOption(
defaultMarker: MarkerIcon(
icon: Icon(
Icons.person_pin_circle,
color: Colors.blue,
size: 56,
),
),
),
trackMyPosition: false,
);
}
}


```


2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: osm_flutter_hooks
description: package extension to support manage state with osm_flutter
version: 1.0.0
version: 1.0.1
homepage: https://github.com/liodali/osm_flutter_hooks

environment:
Expand Down

0 comments on commit 3276e36

Please sign in to comment.