본문 바로가기

# 02

[iOS] 라이브러리 사용! iOS 에서 외부 라이브러리를 사용하기 위해서는 일단! cocoapods 가 설치 되야 한다! https://cocoapods.org/ CocoaPods.org CocoaPods is built with Ruby and is installable with the default Ruby available on macOS. We recommend you use the default ruby. Using the default Ruby install can require you to use sudo when installing gems. Further installation instructions are in the g cocoapods.org $ sudo gem install cocoapods 위의 코드로 c..
[iOS] Alamofire Alamofire는 swift 기반의 HTTP 네트워킹 라이브러리 이다. URLSession을 기반으로 하고 네트워킹 작업을 단순화하고 다양한 메서드와 json 파싱등을 제공한다. URLSession 대신 Alamofire 를 사용하여 코드와 간소화, 가독성 측면에서 도움을 주고 여러 기능을 직접 구축하지 않아도 쉽게 사용할 수 있다. 유효성 검사도 간단하게 할 수 있다. https://cocoapods.org/pods/Alamofire
[iOS] URLSession Http Method - GET : 클라이언트가 서버에 리소스를 요청할 때 사용 - POST : 클라이언트가 서버의 리소스를 새로 만들 때 사용 - PUT : 클라이언트가 서버의 리소스를 전체 수정 할 때 사용 - PATCH : 클라이언트가 서버의 리소스를 일부 수정 할 때 사용 - DELETE : 클라이언트가 서버의 리소스를 삭제 할 때 사용 - HEAD : 클라이언트가 서버의 정상 작동 여부를 확인할 때 사용 - OPTIONS : 클라이언트가 서버에서 해당 URL이 어떤 메소드를 지원하는지 확인 할 때 사용 - CONNECT : 클라이언트가 프록시를 통하여 서버와 SSL 통신을 하고자 할 때 사용 - TRACE : 클라이언트와 서버간 통신 관리 및 디버깅을 할 때 사용 HTTP Status - 100..
[Dart] dynamic / Object / var / final dynamic a = 'abc'; a = 123; a = true; dynamic 은 type 및 value 변경이 가능하다. Object b = 'abc'; b = 123; b = true; Object 역시 type 및 value 변경이 가능하다. var c = 'abc'; c = 'cba'; c = 123; // compile error c = true; // compile error var 는 type 변경이 불가능하고 value 변경은 가능하다! final d = 'abc'; d = 'cba'; // compile error d = 123; // compile error d = true; // compile error final 은 type 및 value 변경이 불가능하다. var a; a = ..
[Flutter] Bluetooth Keyboard Error!! flutter 2.2.0 버전 이후부터!! 안드로이드 삼성 폰에서 flutter 앱을 실행 후 블루투스 키보드를 연결하고 텍스트를 입력하면 키보드가 올라갔다 내려갔다 하는 이상한 버그를 확인 할 수 있다!! https://github.com/flutter/flutter/issues/95697 [Android][Bluetooth Keyboard] The software keyboard repeatedly opens and closes while typing with bluetooth keyboard. · Issue # The software keyboard is repeatedly open and close when I type characters with bluetooth keyboard. I have ..
[Flutter] show Performance Overlay MaterialApp 에 show Performance Overlay: true, 추가해주면 앱 실행시 퍼포먼스 체크 할 수 있다! void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return const MaterialApp( title: 'Flutter Demo', showPerformanceOverlay: true, home: MyHomePage(title: 'Flutter Demo Home Page'), ); } }
[Flutter] Native Shared Preferences ! 지금 회사에서 네이티브 앱을 flutter 앱으로 리뉴얼 하는 작업을 진행 중이다. 업데이트 되는 시점에서 자동 로그인이 풀리지 않도록 shared preferences 값을 마이그레이션 하는 작업이 필요하다고 하여 찾게된 라이브러리 Native Shared Preferences! 처음에 안드로이드 네이티브 앱을 설치하고 flutter 앱을 설치 해주면 자꾸 삭제되고 다시 설치가 되었다. 업데이트가 아니라! 패키지명도 같은데 와이? ✓ Built build/app/outputs/flutter-apk/app-live-debug.apk. Installing build/app/outputs/flutter-apk/app.apk... Uninstalling old version... Error: ADB exite..
[Flutter] How to use Expanded in SingleChildScrollView? Instead of using SingleChildScrollView, It's easier to use CustomScrollView with a SliverFillRemaining. Try this: CustomScrollView( slivers: [ SliverFillRemaining( hasScrollBody: false, child: Column( children: [ const Text('Header'), Expanded(child: Container(color: Colors.red)), const Text('Footer'), ], ), ), ], ) 출처 - https://stackoverflow.com/questions/56326005/how-to-use-expanded-in-singlec..