From 2cdda3294f8d56214822e2e10a24166d3e666415 Mon Sep 17 00:00:00 2001 From: mohammad molaei Date: Sun, 29 Aug 2021 04:06:37 +0430 Subject: [PATCH] change_name --- LICENSE | 12 +++++++++++- example/lib/main.dart | 8 ++++---- example/pubspec.lock | 14 +++++++------- example/pubspec.yaml | 2 +- lib/{custom_marker_icon.dart => marker_icon.dart} | 2 +- pubspec.yaml | 2 +- 6 files changed, 25 insertions(+), 15 deletions(-) rename lib/{custom_marker_icon.dart => marker_icon.dart} (99%) diff --git a/LICENSE b/LICENSE index ba75c69..49db5cf 100644 --- a/LICENSE +++ b/LICENSE @@ -1 +1,11 @@ -TODO: Add your license here. +Copyright <2021> github.com/mmolaei7878/google_map_custom_marker_icon + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/example/lib/main.dart b/example/lib/main.dart index 4b47817..4b68664 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,6 +1,6 @@ -import 'package:custom_marker_icon/custom_marker_icon.dart'; import 'package:google_maps_flutter/google_maps_flutter.dart'; import 'package:flutter/material.dart'; +import 'package:marker_icon/marker_icon.dart'; void main() { WidgetsFlutterBinding.ensureInitialized(); @@ -37,7 +37,7 @@ class _HomePageState extends State { _markers.add( Marker( markerId: MarkerId('circleCanvasWithText'), - icon: await CustomMarkerIcon.circleCanvasWithText( + icon: await MarkerIcon.circleCanvasWithText( size: Size(80, 80), text: 'Hi', circleColor: Colors.red, @@ -50,7 +50,7 @@ class _HomePageState extends State { _markers.add( Marker( markerId: MarkerId('downloadResizePicture'), - icon: await CustomMarkerIcon.downloadResizePicture( + icon: await MarkerIcon.downloadResizePicture( url: 'https://thegpscoordinates.net/photos/la/tehran_iran_5u679ezi8f.jpg', imageSize: 150), @@ -60,7 +60,7 @@ class _HomePageState extends State { _markers.add( Marker( markerId: MarkerId('downloadResizePictureCircle'), - icon: await CustomMarkerIcon.downloadResizePictureCircle( + icon: await MarkerIcon.downloadResizePictureCircle( 'https://thegpscoordinates.net/photos/la/tehran_iran_5u679ezi8f.jpg', size: 150, addBorder: true, diff --git a/example/pubspec.lock b/example/pubspec.lock index 797c12e..a506d0f 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -57,13 +57,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.0.3" - custom_marker_icon: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "0.6.1" fake_async: dependency: transitive description: @@ -144,6 +137,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "4.0.0" + marker_icon: + dependency: "direct main" + description: + path: ".." + relative: true + source: path + version: "0.6.1" matcher: dependency: transitive description: diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 9330fc5..b153952 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -24,7 +24,7 @@ dependencies: flutter: sdk: flutter google_maps_flutter: ^2.0.6 - custom_marker_icon: + marker_icon: path: ../ # The following adds the Cupertino Icons font to your application. diff --git a/lib/custom_marker_icon.dart b/lib/marker_icon.dart similarity index 99% rename from lib/custom_marker_icon.dart rename to lib/marker_icon.dart index 779ce5e..c47f63c 100644 --- a/lib/custom_marker_icon.dart +++ b/lib/marker_icon.dart @@ -10,7 +10,7 @@ import 'package:flutter_cache_manager/flutter_cache_manager.dart'; import 'package:flutter_svg/flutter_svg.dart'; import 'package:google_maps_flutter/google_maps_flutter.dart'; -class CustomMarkerIcon { +class MarkerIcon { static Future svgAsset({ required String assetName, required BuildContext context, diff --git a/pubspec.yaml b/pubspec.yaml index 2cbac83..1b0a80a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,4 +1,4 @@ -name: custom_marker_icon +name: marker_icon description: A collection of icon marker for google_maps_flutter. version: 0.6.1 homepage: https://github.com/mmolaei7878/google_map_custom_marker_icon