본문 바로가기

전체 글

[Flutter] 플러터 프로젝트 Github push 하기!! 1. github에서 repository를 생성한다. (다 비우면 된다) 2. Flutter project를 생성하고 아래 command를 프로젝트의 루트에서 입력한다. git init git add . git commit -m "message" git remote add origin "github repo address" git push -u origin master 더보기
[알아야 할 사실] .bash_profile 1. 경로 이동 $ cd ~ 2. .bash_profile 수정하기 $ vi .bash_profile 3. PATH=$PATH:HOME/ ~ .bash_profile에 붙여넣고~ 4. 저장하기 $ :wq $ source .bash_profile 더보기
Android Emulator Warning 해결 에러 내용 Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 [ ] Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 [ ] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns ht.. 더보기
[Firebase] Flutter Firebase CLI 연동하기 Flutter Firebase CLI 연동하기! 1. Firebase 설치하기! CMD에서 아래의 명령어로 설치할 수 있다. $ curl -sL https://firebase.tools | bash This script automatically detects your operating system, downloads the latest Firebase CLI release, then enables the globally available firebase command. 2. 제대로 설치되었는지 확인하기! Firebase cmd가 작동하기만 하면 된다. 2.0 설치된 Firebase ver. 확인 $ firebase --version 2.1 Firebase Local 에서 로그인하기 $ firebase l.. 더보기
[Homebrew] Homebrew install Homebrew install arch arm64 brew install 아래와 같은 방법으로 install 해야한다. 더보기
[Widget] LayoutBuilder LayoutBuilder Example class Responsive extends StatelessWidget { final Widget? mobile; final Widget desktop; const Responsive({Key? key, required this.desktop, this.mobile,}) : super(key: key); static bool isMobile() => ScreenUtil().screenWidth ScreenUtil().screenWidth >= 700 && ScreenUtil().screenWidth ScreenUtil().screenWi.. 더보기
[Flutter] Flutter Build Mode Flutter Build Mode Flutter Build 다양한 Mode가 존재하고 목적에 따라 Build Mode를 다르게 할 수 있다. Flutter Release Mode (실제 기기) Release Mode를 사용해서 실제 기기를 Run 하면 USB 없이도 기기 테스팅을 할 수 있다. Devices ID 확인하는법 - Flutter devices Flutter DevicesID --release 🔗 https://flutter-ko.dev/docs/testing/build-modes Flutter의 빌드 모드 Flutter의 빌드 모드를 설명하고 언제 디버그, 릴리즈, 프로파일 모드를 사용해야하는지 설명합니다. flutter-ko.dev 더보기
[GETX] Binding 관리 Get.lazyPut lazyPut() 이란? lazyPut() 은 실제로 사용될 때에 메모리상에 올림으로써 메모리 사용이 큰 파일을 처리할 때 주로 사용한다. 사용법 import 'package:get/instance_manager.dart'; import 'package:getx_travel_crud/controller/controller.dart'; class InitBinding implements Bindings { @override void dependencies() { Get.lazyPut(() => HomeController()); } } Get.lazyPut()의 경우에는 ()=> 를 사용해줘야 한다. 더보기