Skip to content

Commit

Permalink
change_name
Browse files Browse the repository at this point in the history
  • Loading branch information
nmolaei7878 committed Aug 28, 2021
1 parent 15ebfdb commit 2cdda32
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 15 deletions.
12 changes: 11 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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.
8 changes: 4 additions & 4 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -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();
Expand Down Expand Up @@ -37,7 +37,7 @@ class _HomePageState extends State<HomePage> {
_markers.add(
Marker(
markerId: MarkerId('circleCanvasWithText'),
icon: await CustomMarkerIcon.circleCanvasWithText(
icon: await MarkerIcon.circleCanvasWithText(
size: Size(80, 80),
text: 'Hi',
circleColor: Colors.red,
Expand All @@ -50,7 +50,7 @@ class _HomePageState extends State<HomePage> {
_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),
Expand All @@ -60,7 +60,7 @@ class _HomePageState extends State<HomePage> {
_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,
Expand Down
14 changes: 7 additions & 7 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/custom_marker_icon.dart → lib/marker_icon.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<BitmapDescriptor> svgAsset({
required String assetName,
required BuildContext context,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 2cdda32

Please sign in to comment.