Skip to content

Commit 8f7b556

Browse files
committed
update readme
1 parent 77b7c26 commit 8f7b556

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![pub package](https://img.shields.io/pub/v/flutter_map_location_marker)](https://pub.dev/packages/flutter_map_location_marker)
44
[![github tag](https://img.shields.io/github/v/tag/tlserver/flutter_map_location_marker?include_prereleases&sort=semver)](https://github.com/tlserver/flutter_map_location_marker)
5-
[![license](https://img.shields.io/github/license/tlserver/flutter_map_location_marker)](https://github.com/tlserver/flutter_map_location_marker/blob/master/LICENSE)
5+
[![license](https://img.shields.io/github/license/tlserver/flutter_map_location_marker)](https://github.com/tlserver/flutter_map_location_marker/blob/main/LICENSE)
66

77
`flutter_map_location_marker` is a [flutter_map](https://pub.dev/packages/flutter_map) plugin for
88
displaying device's current location on a map. It provides a simple and flexible way to add a
@@ -89,29 +89,29 @@ about `flutter_map_location_marker`, get help and help others in the #plugins ch
8989

9090
## Examples
9191

92-
1. [Marker Customization](https://github.com/tlserver/flutter_map_location_marker/blob/master/example/lib/page/customize_marker_example.dart) :
92+
1. [Marker Customization](https://github.com/tlserver/flutter_map_location_marker/blob/main/example/lib/page/customize_marker_example.dart) :
9393
Change the marker to any widget you want.
9494

9595
2. [Floating Action Button to Follow Current Location](https://github.com/tlserver/flutter_map_location_marker/blob/main/example/lib/page/center_fab_example.dart) :
9696
Use a floating action button to move and zoom the map to the current location.
9797

98-
3. [Change Geolocator Settings](https://github.com/tlserver/flutter_map_location_marker/blob/master/example/lib/page/geolocator_settings_example.dart) :
98+
3. [Change Geolocator Settings](https://github.com/tlserver/flutter_map_location_marker/blob/main/example/lib/page/geolocator_settings_example.dart) :
9999
Define Geolocator settings yourself.
100100

101-
4. [Selectable Distance Filter](https://github.com/tlserver/flutter_map_location_marker/blob/master/example/lib/page/selectable_distance_filter_example.dart) :
101+
4. [Selectable Distance Filter](https://github.com/tlserver/flutter_map_location_marker/blob/main/example/lib/page/selectable_distance_filter_example.dart) :
102102
Change Geolocator settings at the runtime.
103103

104-
5. [Custom Stream](https://github.com/tlserver/flutter_map_location_marker/blob/master/example/lib/page/custom_stream_example.dart) :
104+
5. [Custom Stream](https://github.com/tlserver/flutter_map_location_marker/blob/main/example/lib/page/custom_stream_example.dart) :
105105
Use your own stream, such as position stream from another library or predefined route, as the
106106
source.
107107

108-
6. [No Stream](https://github.com/tlserver/flutter_map_location_marker/blob/master/example/lib/page/no_stream_example.dart) :
108+
6. [No Stream](https://github.com/tlserver/flutter_map_location_marker/blob/main/example/lib/page/no_stream_example.dart) :
109109
Use Flutter `setState()` to update position and heading.
110110

111-
7. [Navigation Mode](https://github.com/tlserver/flutter_map_location_marker/blob/master/example/lib/page/navigation_example.dart) :
111+
7. [Navigation Mode](https://github.com/tlserver/flutter_map_location_marker/blob/main/example/lib/page/navigation_example.dart) :
112112
Rotate the map to keep heading pointing upward.
113113

114-
8. [Default Stream](https://github.com/tlserver/flutter_map_location_marker/blob/master/example/lib/page/default_stream_example.dart) :
114+
8. [Default Stream](https://github.com/tlserver/flutter_map_location_marker/blob/main/example/lib/page/default_stream_example.dart) :
115115
Share the default streams between your app and this plugin.
116116

117117
## FAQ
@@ -125,6 +125,7 @@ or their origin streams from a CurrentLocationLayer widget?
125125
own streams with the the same types and also pass it to all the widgets which need them.
126126
CurrentLocationLayer doesn't own the streams; it just listens to them. You can use any
127127
implementation of position and heading streams, as long as the stream types are
128-
Stream<Position> and Stream<double>, respectively. You may
129-
see [this example](https://github.com/tlserver/flutter_map_location_marker/blob/master/example/lib/page/default_stream_example.dart)
128+
Stream<LocationMarkerPosition?> and Stream<LocationMarkerHeading?>, respectively. You
129+
may
130+
see [this example](https://github.com/tlserver/flutter_map_location_marker/blob/main/example/lib/page/default_stream_example.dart)
130131
to know about how to do this.

0 commit comments

Comments
 (0)