Skip to content

Commit e9eb4b7

Browse files
committed
네이버 맵 추가하기
1 parent ec5b57f commit e9eb4b7

File tree

9 files changed

+68
-0
lines changed

9 files changed

+68
-0
lines changed

android/app/src/main/AndroidManifest.xml

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<!-- 위치 정보 엑세스 권한 요청 -->
44
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
55
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
6+
7+
68
<application
79
android:label="restaurant"
810
android:name="${applicationName}"
@@ -12,6 +14,11 @@
1214
<meta-data android:name="com.google.android.geo.API_KEY"
1315
android:value="AIzaSyCEbUgXXBs8X1zjUVLlzufNu2eU2KqJbbY"/> <!--// android API Key-->
1416

17+
<!-- 네이버 맵 id -->
18+
<meta-data
19+
android:name="com.naver.maps.map.CLIENT_ID"
20+
android:value="YOUR_CLIENT_ID_HERE" />
21+
1522
<activity
1623
android:theme="@style/MyCustomTheme"
1724
android:name=".SecondActivity"/>
File renamed without changes.
File renamed without changes.

lib/_sample/naver_map/main.dart

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import 'package:flutter/cupertino.dart';
2+
import 'package:flutter/material.dart';
3+
4+
import 'naver.dart';
5+
6+
void main() => runApp(const MyApp());
7+
8+
class MyApp extends StatelessWidget {
9+
const MyApp({super.key});
10+
11+
@override
12+
Widget build(BuildContext context) {
13+
return MaterialApp(
14+
title: '네이버 맵',
15+
home: const HomePage(),
16+
);
17+
}
18+
}

lib/_sample/naver_map/naver.dart

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import 'package:flutter/foundation.dart';
2+
import 'package:flutter/gestures.dart';
3+
import 'package:flutter/material.dart';
4+
import 'package:flutter/rendering.dart';
5+
import 'package:flutter/services.dart';
6+
7+
class HomePage extends StatefulWidget {
8+
const HomePage({Key? key}) : super(key: key);
9+
10+
@override
11+
State<HomePage> createState() => _HomePageState();
12+
}
13+
14+
class _HomePageState extends State<HomePage> {
15+
@override
16+
Widget build(BuildContext context) {
17+
// This is used in the platform side to register the view.
18+
const String viewType = '<platform-view-type>';
19+
// Pass parameters to the platform side.
20+
const Map<String, dynamic> creationParams = <String, dynamic>{};
21+
22+
return Scaffold(
23+
appBar: AppBar(
24+
title: Text("네이버 맵"),
25+
),
26+
body: Column(children: [
27+
28+
],),
29+
);
30+
}
31+
}

pubspec.lock

+9
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,15 @@ packages:
345345
url: "https://pub.dartlang.org"
346346
source: hosted
347347
version: "2.0.0"
348+
naver_map_plugin:
349+
dependency: "direct main"
350+
description:
351+
path: "."
352+
ref: HEAD
353+
resolved-ref: d6029c020e13c926ff5f94b445b4f65abb48b85f
354+
url: "https://github.com/LBSTECH/naver_map_plugin.git"
355+
source: git
356+
version: "0.9.7"
348357
nested:
349358
dependency: transitive
350359
description:

pubspec.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ dependencies:
5353
change_app_package_name: ^1.1.0
5454
google_sign_in: ^5.4.2
5555

56+
naver_map_plugin:
57+
git: https://github.com/LBSTECH/naver_map_plugin.git
58+
5659

5760

5861

0 commit comments

Comments
 (0)