TIL22 20231030 TIL Today 요약 [✅] 프로그래머스 코딩테스트 3문제 [✅] dart 강의 11~15 5강 [✅] flutter 강의 2강 [] 옵시디언 정리 배운 점 1. javascript 1-1 for문과 forEach 차이 동기(sync), 비동기(async)의 차이 : for는 동기방식이기에 for문 안에 오류가 나면 위치 이후의 작업이 동작하지 않고 멈춰버린다. 하지만 forEach문은 비동기 방식이기 때문에 멈추지 않고 동작한다 forEach문은 "향상된 for문"이라고 칭하며, 가변적인 배열이나 리스트 크기를 구할 필요 없어 복잡한 반복문에 적합하며, 인덱스를 생성하여 접근하는 for문보다 수행속도가 빠르다 단점 : 반복문 내에서 배열이나 리스트 값을 변경하거나 추가할 수 없고, 배열을 역순으로 탐색할 수.. 2023. 10. 30. 20230918 TIL :: 코로나에 진 몸뚱아리 Today 요약 [✅] 프로그래머스 코딩테스트 2문제 [✅] flutter 코드챌린지 [✅] flutter 강의 1개 배운 점 1. js array reduce array.reduce((a,v)=> a+v); a는 누적값, v는 배열의 각 요소 array 모든 배열의 요소를 더해 하나의 값을 반환 array = [1,2,3,4,5] 이면 1+2+3+4+5 가 되어 15 반환 2. flutter GestureDetector GestureDetector class - widgets library - Dart API A widget that detects gestures. Attempts to recognize gestures that correspond to its non-null callbacks. If .. 2023. 9. 18. 20230911 TIL : 업보빔 맞는 중 Today 요약 [✅] 프로그래머스 코딩테스트 Lv0 1문제 [✅] flutter 강의 3개 배운 점 1. flutter camera flutter pub add camera 자동으로 권한을 요청하며 사용자가 허용하지 않으면 에러를 반환 1-1 Android sdk 최소 버전 21 (android/app/build.gradle) minSdkVersion 21 camera | Flutter Package A Flutter plugin for controlling the camera. Supports previewing the camera feed, capturing images and video, and streaming image buffers to Dart. pub.dev 2. flutter permi.. 2023. 9. 11. 20230905 : 오늘도 해낸 나 아주 칭찬 Today 요약 [✅] 프로그래머스 코딩테스트 lv0 1문제 [✅] flutter 강의 2개 [✅] flutter 위젯 강의 1개 [✅] dart 강의 2개 배운 점 1) flutter CustomTransitionPage 사용자 정의 전환 기능이 포함된페이지 MaterialPage 또는 CupertinoPage 대신 사용된다 새로운 경로로 라우팅할 때 trasitionBuilder가 CustomTransitionPage 호출되며 전환 위젯을 반환 GoRoute( path: '/fade', pageBuilder: (context, state) => CustomTransitionPage( key: state.pageKey, child: const TransitionsPage(kind: 'fade', col.. 2023. 9. 5. 20230904 TIL : 믿음의 월요일 라스고 Today 요약 [✅] 프로그래머스 코딩테스트 1문제 [✅] flutter 강의 2개 [✅] 개발 책 3P 배운 점 1) flutter Gorouter parameters GoRouter와 Navigator 1.0을 조합해서 만들수도 있음 1-1 Goroute GoRouter class - go_router library - Dart API The route configuration for the app. The routes list specifies the top-level routes for the app. It must not be empty and must contain an GoRouter to match /. See the Get started example, which shows an app.. 2023. 9. 4. 20230830 TIL : 급할수록 천천히 기초다지기 Today 요약 [✅] 프로그래머스 코딩테스트 lv0 1문제 [✅] flutter 강의 2개 [✅] dart 강의 2개 배운 점 1) flutter dart static ? static은 dart 클래스 내에서 사용되는 한정자로 해당 클래스의 인스턴스 없이 직접 클래스 자체에 접근 할 때 사용 클래스 레벨의 속성 또는 메서드 : static 키워드 사용시 해당 속성 또는 메서드가 클래스 수준에 졵재하게 된다 인스턴스 없이 접근 가능 : 클래스의 인스턴스를 생성지 않고도 static으로 정의된 멤버에 접근 가능하다 인스턴스 변수에 접근할 수 없음 class MyClass { static int staticVariable = 10; // static 변수 static void staticMethod() { .. 2023. 8. 30. 이전 1 2 3 4 다음