Skip to content

Commit

Permalink
docs : change example
Browse files Browse the repository at this point in the history
  • Loading branch information
liodali committed Jul 2, 2022
1 parent 4fe22b3 commit b1ea637
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 24 deletions.
Binary file added example/asset/taxi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 23 additions & 16 deletions example/lib/src/home/home_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,16 @@ class _MainExampleState extends State<MainExample> with OSMMixinObserver {
await controller.addMarker(
controller.listenerMapSingleTapping.value!,
markerIcon: MarkerIcon(
// icon: Icon(
// Icons.person_pin,
// color: Colors.red,
// size: 32,
// ),
assetMarker: AssetMarker(
image: AssetImage("asset/pin.png"),
icon: Icon(
Icons.person_pin,
color: Colors.red,
size: 96,
),
// assetMarker: AssetMarker(
// image: AssetImage("asset/pin.png"),
// ),
// assetMarker: AssetMarker(
// image: AssetImage("asset/pin.png"),
// //scaleAssetImage: 2,
// ),
),
Expand Down Expand Up @@ -297,17 +297,23 @@ class _MainExampleState extends State<MainExample> with OSMMixinObserver {
stepZoom: 1.0,
userLocationMarker: UserLocationMaker(
personMarker: MarkerIcon(
icon: Icon(
Icons.location_history_rounded,
color: Colors.red,
size: 48,
),
// icon: Icon(
// Icons.car_crash_sharp,
// color: Colors.red,
// size: 48,
// ),
assetMarker: AssetMarker(
image: AssetImage(
"asset/taxi.png",
),
scaleAssetImage: 0.3),
),
directionArrowMarker: MarkerIcon(
icon: Icon(
Icons.double_arrow,
size: 48,
),
assetMarker: AssetMarker(
image: AssetImage(
"asset/taxi.png",
),
scaleAssetImage: 0.45),
),
),
showContributorBadgeForOSM: true,
Expand Down Expand Up @@ -525,6 +531,7 @@ class _MainExampleState extends State<MainExample> with OSMMixinObserver {
*/


///selection geoPoint
GeoPoint point = await controller.selectPosition(
icon: MarkerIcon(
Expand Down
37 changes: 29 additions & 8 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ packages:
name: dio
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.4"
version: "4.0.6"
fake_async:
dependency: transitive
description:
Expand All @@ -82,21 +82,21 @@ packages:
path: "../flutter_osm_interface"
relative: true
source: path
version: "0.1.21"
version: "0.1.22"
flutter_osm_plugin:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "0.34.0+1"
version: "0.34.1+2"
flutter_plugin_android_lifecycle:
dependency: transitive
description:
name: flutter_plugin_android_lifecycle
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.3"
version: "2.0.6"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down Expand Up @@ -162,14 +162,35 @@ packages:
name: permission_handler
url: "https://pub.dartlang.org"
source: hosted
version: "8.3.0"
version: "10.0.0"
permission_handler_android:
dependency: transitive
description:
name: permission_handler_android
url: "https://pub.dartlang.org"
source: hosted
version: "10.0.0"
permission_handler_apple:
dependency: transitive
description:
name: permission_handler_apple
url: "https://pub.dartlang.org"
source: hosted
version: "9.0.4"
permission_handler_platform_interface:
dependency: transitive
description:
name: permission_handler_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "3.7.0"
permission_handler_windows:
dependency: transitive
description:
name: permission_handler_windows
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.0"
plugin_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -244,7 +265,7 @@ packages:
name: url_launcher
url: "https://pub.dartlang.org"
source: hosted
version: "6.1.2"
version: "6.1.4"
url_launcher_android:
dependency: transitive
description:
Expand Down Expand Up @@ -279,7 +300,7 @@ packages:
name: url_launcher_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.3"
version: "2.1.0"
url_launcher_web:
dependency: transitive
description:
Expand All @@ -300,7 +321,7 @@ packages:
name: uuid
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.5"
version: "3.0.6"
vector_math:
dependency: transitive
description:
Expand Down

0 comments on commit b1ea637

Please sign in to comment.