hyoon272316
@hyoon272316
Reviews Written
-
Average Rating
-
Posts
Q&A
๋ฐฐํฌ ๊ฐ์ ์ค ์ง๋ฌธ์์ต๋๋ค.
๋ก์ปฌ์์๋ ์ ๋ถ ์ ์์๋ ๋ฉ๋๋ค.AWS๋ฅผ ์ฐ๊ฒฐํ๋๊ฒ ๋ถํฐ ์ดํด๊ฐ ์์ ์๋๋๋ฐ ๊ฐ์์ ๋์์๋๊ฑด ์ ๋ถ ๋ฐ๋ผ์ ํด์ EC2, RDS ๋ง๋ค์์ต๋๋ค. ๊ทธ๋ฌ๊ณ ๋ค์ vim .env ๋ก env๋ฅผ ์์ ํ๋ผ๋๊ฒ๋ ์ด๋ป๊ฒ ํ๋์ง ๋ชจ๋ฅด๊ฒ ๊ณ ์๋ฒ๋ ์ฐ๊ฒฐ์ ์ด๋ป๊ฒ ํ๋๊ฑด์ง ์ดํด๊ฐ ์๋ผ์ ใ ๋ง์ง๋ง๊น์ง ์๋๋ฐ ์ฌ๊ธฐ์ ๋งํ๋ฒ๋ ธ์ต๋๋ค..
- 0
- 2
- 150
Q&A
ํ๋ก์ ํธ ์์ cocoapods ์๋ฌ
์ฃ์กํฉ๋๋ค AI ๋ต๋ณ๋ง ๋ณด๊ณ ๋ฐ๋ผํ๋ค๊ฐ ์ด์ํ๊ฒ ์งํ๋๊ฒ๊ฐ๋ค์ ใ ใ ํ์ฌ ํ๋ก์ ํธ ์์ฑํ๋ฉด ์๋์ ๊ฐ์ด ์๋ฌ๊ฐ ๋ฐ์ํฉ๋๋ค! gongmyeong@Huns-Pro documents % npx react-native@0.72.6 init MatzipApp --version 0.72.6 ###### ###### ### #### #### ### ## ### ### ## ## #### ## ## #### ## ## ## ## ## ## ### ### ## ## ######################## ## ###### ### ### ###### ### ## ## ## ## ### ### ## ### #### ### ## ### ## #### ######## #### ## ## ### ########## ### ## ## #### ######## #### ## ### ## ### #### ### ## ### ### ## ## ## ## ### ###### ### ### ###### ## ######################## ## ## ### ### ## ## ## ## ## ## #### ## ## #### ## ## ### ### ## ### #### #### ### ###### ###### Welcome to React Native! Learn once, write anywhere โ Downloading templateโ Copying templateโ Processing templateโ Installing Ruby Gemserror There was an error while trying to write to/Users/gongmyeong/.bundle/cache/compact_index/rubygems.org.443.29b0360b937aa4d161703e6160654e47/versions.It is likely that you need to grant write permissions for that path.โ Installing Ruby Gemserror Looks like your iOS environment is not properly set. Please go to https://reactnative.dev/docs/environment-setup?os=macos&platform=android and follow the React Native CLI QuickStart guide for macOS and iOS.info Run CLI with --verbose flag for more details. rbenv -v ๋ฒ์ ์ ์๋์ ๊ฐ์ด ๋์ต๋๋คgongmyeong@Huns-Pro documents % rbenv -v rbenv 1.3.0
- 0
- 3
- 316
Q&A
๋ฌธ์๋๋ฆฝ๋๋ค.
sudo flutter doctor ์ ๋ ฅํ๋ฉด ์ ์์ ์ผ๋ก ์๋์๊ฐ์ด ์คํ์ด ๋๋๋ฐ ์ด๋๋ก ์งํํด๋ ๊ด์ฐฎ์๊ฑด๊ฐ์?? Doctor summary (to see all details, run flutter doctor -v):[โ] Flutter (Channel stable, 3.19.5, on macOS 13.5.2 22G91 darwin-arm64, locale ko-KR)[โ] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc1)[!] Xcode - develop for iOS and macOS (Xcode 15.2) โ CocoaPods installed but not working. You appear to have CocoaPods installed but it is not working. This can happen if the version of Ruby that CocoaPods was installed with is different from the one being used to invoke it. This can usually be fixed by re-installing CocoaPods. To re-install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.[โ] Chrome - develop for the web[โ] Android Studio (version 2022.2)[โ] IntelliJ IDEA Ultimate Edition (version 2023.3.1)[โ] VS Code (version 1.88.0)[โ] Connected device (2 available) [โ] Network resources
- 0
- 2
- 371
Q&A
์๋ ํ์ธ์ ๋ฌธ์๋๋ฆฝ๋๋ค !
google maps flutter 2.2.5์ฌ์ฉ์ค์ ๋๋ค ! ใ ใ
- 0
- 2
- 473
Q&A
์๋ ํ์ธ์ ๋ฌธ์๋๋ฆฝ๋๋ค !
(์ฌ์ง)์๋ฌ๋ฉ์ธ์ง๋ ์ด๋ ๊ฒ ๋น๋๋ค ใ
- 0
- 2
- 473
Q&A
์นด๋ฉ๋ผ ์์น ์ ๋๋ฉ์ด์ ์ผ๋ก ์ด๋ํ๊ธฐ ์๊ฐ์ค ์ง๋ฌธ
์ฃ์กํฉ๋๋ค...๋จธ๋ฆฌ๊ฐ ๋๋น ์ ๋์ ํ ๋ชป์ฐพ๊ฒ ์ต๋๋ค ใ
- 0
- 4
- 598
Q&A
์นด๋ฉ๋ผ ์์น ์ ๋๋ฉ์ด์ ์ผ๋ก ์ด๋ํ๊ธฐ ์๊ฐ์ค ์ง๋ฌธ
๊ฐ์ ๊ทธ๋๋ก ๋ฐ๋ผํ๋๋ฐ ใ ใ ํน์ ๋ญ๊ฐ ์๋ชป ๋ฌ์๊น์?
- 0
- 4
- 598
Q&A
์นด๋ฉ๋ผ ์์น ์ ๋๋ฉ์ด์ ์ผ๋ก ์ด๋ํ๊ธฐ ์๊ฐ์ค ์ง๋ฌธ
import 'package:flutter/material.dart'; import 'package:geolocator/geolocator.dart'; import 'package:google_maps_flutter/google_maps_flutter.dart'; class HomeScreen extends StatefulWidget { const HomeScreen({super.key}); @override State createState() => _HomeScreenState(); } class _HomeScreenState extends State { bool choolCheckDone = false; GoogleMapController? mapController; static final LatLng companyLatLng = LatLng(35.785756, 128.634620); static final CameraPosition initialPosition = CameraPosition( target: companyLatLng, zoom: 15, ); static final double okDistance = 100; static final Circle withinDistanceCircle = Circle( circleId: CircleId('withinDistanceCircle'), center: companyLatLng, fillColor: Colors.blue.withOpacity(0.5), radius: okDistance, strokeColor: Colors.blue, strokeWidth: 1, ); static final Circle notWithinDistanceCircle = Circle( circleId: CircleId('notWithinDistanceCircle'), center: companyLatLng, fillColor: Colors.red.withOpacity(0.5), radius: okDistance, strokeColor: Colors.red, strokeWidth: 1, ); static final Circle checkDoneCircle = Circle( circleId: CircleId('checkDoneCircle'), center: companyLatLng, fillColor: Colors.green.withOpacity(0.5), radius: okDistance, strokeColor: Colors.green, strokeWidth: 1, ); static final Marker marker = Marker( markerId: MarkerId('marker'), position: companyLatLng, ); @override Widget build(BuildContext context) { return Scaffold( appBar: renderAppBar(), body: FutureBuilder( future: checkPermission(), builder: (BuildContext context, AsyncSnapshot snapshot) { if (snapshot.connectionState == ConnectionState.waiting) { return Center( child: CircularProgressIndicator(), ); } if (snapshot.data == '์์น ๊ถํ์ด ํ๊ฐ๋์์ต๋๋ค.') { return StreamBuilder( stream: Geolocator.getPositionStream(), builder: (context, snapshot) { bool isWithinRange = false; print(snapshot.hasData); if (snapshot.hasData) { final start = snapshot.data!; final end = companyLatLng; final distance = Geolocator.distanceBetween( start.latitude, start.longitude, end.latitude, end.longitude, ); if (distance checkPermission() async { final isLocationEnabled = await Geolocator.isLocationServiceEnabled(); if (!isLocationEnabled) { return '์์น ์๋น์ค๋ฅผ ํ์ฑํ ํด์ฃผ์ธ์.'; } LocationPermission checkedPermission = await Geolocator.checkPermission(); if (checkedPermission == LocationPermission.denied) { checkedPermission = await Geolocator.requestPermission(); if (checkedPermission == LocationPermission.denied) { return '์์น ๊ถํ์ ํ๊ฐํด์ฃผ์ธ์.'; } } if (checkedPermission == LocationPermission.deniedForever) { return '์ฑ์ ์์น ๊ถํ์ ์ธํ ์์ ํ๊ฐํด์ฃผ์ธ์.'; } return '์์น ๊ถํ์ด ํ๊ฐ๋์์ต๋๋ค.'; } AppBar renderAppBar() { return AppBar( centerTitle: true, title: Text( '์ฑ ์ฃผ ์ฐธ ์ธ', style: TextStyle( color: Colors.grey[800], fontWeight: FontWeight.w700, ), ), backgroundColor: Colors.white, ); } class _CustomGoogleMap extends StatelessWidget { final CameraPosition initialPosition; final Circle circle; final Marker marker; final MapCreatedCallback onMapCreated; const _CustomGoogleMap({ required this.initialPosition, required this.circle, required this.marker, required this.onMapCreated, super.key, }); @override Widget build(BuildContext context) { return Expanded( flex: 3, child: GoogleMap( initialCameraPosition: initialPosition, mapType: MapType.normal, myLocationEnabled: true, myLocationButtonEnabled: true, circles: Set.from([circle]), markers: Set.from([marker]), onMapCreated: onMapCreated, ), ); } } class _CheckButton extends StatelessWidget { final bool isWithinRange; final VoidCallback onPressed; final bool choolCheckDone; const _CheckButton( {required this.isWithinRange, required this.onPressed, required this.choolCheckDone, super.key}); @override Widget build(BuildContext context) { return Expanded( flex: 1, child: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Icon( Icons.timelapse_outlined, size: 50.0, color: choolCheckDone ? Colors.green : isWithinRange ? Colors.blue : Colors.red, ), SizedBox( height: 20, ), if (!choolCheckDone && isWithinRange) TextButton( onPressed: onPressed, child: Text( '์ถ๊ทผํ๊ธฐ', style: TextStyle( color: Colors.grey[800], ), ), ), ], ), ), ); } }
- 0
- 4
- 598




