A
-
1. npm 공식홈페이지에서 회원가입을 한다. https://www.npmjs.com npm Bring the best of open source to you, your team, and your company Relied upon by more than 11 million developers worldwide, npm is committed to making JavaScript development elegant, productive, and safe. The free npm Registry has become the center of Java www.npmjs.com 2. npm 배포 명령어를 기억하자. npm publish : 내가 만든 패키지를 배포 npm unpublish --force : 내가..
node] npm 배포를 해보자.1. npm 공식홈페이지에서 회원가입을 한다. https://www.npmjs.com npm Bring the best of open source to you, your team, and your company Relied upon by more than 11 million developers worldwide, npm is committed to making JavaScript development elegant, productive, and safe. The free npm Registry has become the center of Java www.npmjs.com 2. npm 배포 명령어를 기억하자. npm publish : 내가 만든 패키지를 배포 npm unpublish --force : 내가..
2022.05.26 -
npm bin -g 입력 후 본인의 경로를 확인한다. 아래와 같이 나온다. ➜ ~ npm bin -g /Users/kfh/‘~/.npm-global/bin (not in PATH env variable) vi ~/.zshrc 입력 후 아래와 같이 자신의 경로를 설정한다. # NPM export PATH=${PATH}:/Users/kfh/‘~/.npm-global/bin
환경변수 설정] zsh: command not found: exponpm bin -g 입력 후 본인의 경로를 확인한다. 아래와 같이 나온다. ➜ ~ npm bin -g /Users/kfh/‘~/.npm-global/bin (not in PATH env variable) vi ~/.zshrc 입력 후 아래와 같이 자신의 경로를 설정한다. # NPM export PATH=${PATH}:/Users/kfh/‘~/.npm-global/bin
2022.05.10 -
최근 강좌를 보면서 얻은 팁을 얘기해보습니다. 보통 ListView 위젯을 이용해서 레이아웃을 구성하면 잘 안되는 경우가 많습니다. item의 갯수는 10개인데 그 내용(자식의 내용)과 일치하지 않거나 혹은 높이가 무한이라서 발생되거나 등의 에러가 대표적입니다. 이런 경우 두가지 해결 방법이 있습니다. 1. shrinkWrap를 사용한다. 2. Expanded를 사용한다. 간단한 예제 코드 Widget build(BuildContext context) { return Scaffold( appBar: AppBar( elevation: 0, backgroundColor: Colors.white, centerTitle: true, title: const Text( '이미지 검색 앱', style: TextSt..
Flutter] ListView or GridView 만들 때 팁최근 강좌를 보면서 얻은 팁을 얘기해보습니다. 보통 ListView 위젯을 이용해서 레이아웃을 구성하면 잘 안되는 경우가 많습니다. item의 갯수는 10개인데 그 내용(자식의 내용)과 일치하지 않거나 혹은 높이가 무한이라서 발생되거나 등의 에러가 대표적입니다. 이런 경우 두가지 해결 방법이 있습니다. 1. shrinkWrap를 사용한다. 2. Expanded를 사용한다. 간단한 예제 코드 Widget build(BuildContext context) { return Scaffold( appBar: AppBar( elevation: 0, backgroundColor: Colors.white, centerTitle: true, title: const Text( '이미지 검색 앱', style: TextSt..
2022.04.05 -
Null에 관련된 부분을 신경써야한다. 예를 들어 아래와 같은 코드가 있다고 했을 때 Align( alignment: Alignment.center, child: ChartSvg( url: _marketMapNotifier.chartImageMap[ widget.tickerNotifier.ticker.currencyPair]!, widthRatio: chartWidthRatio, height: chartHeight, color: getColor(), ) ), _marketMapNotifier.chartImageMap에서 chartImageMap은 Map으로 선언되어 있다. String?은 Null을 허용하고 있다. 그런데 위에 코드에서 아래와 같이 !느낌표를 사용해서 Null을 허용하지 않게 만들었다. ..
Flutter] Null Check, Null check operator used on a null valueNull에 관련된 부분을 신경써야한다. 예를 들어 아래와 같은 코드가 있다고 했을 때 Align( alignment: Alignment.center, child: ChartSvg( url: _marketMapNotifier.chartImageMap[ widget.tickerNotifier.ticker.currencyPair]!, widthRatio: chartWidthRatio, height: chartHeight, color: getColor(), ) ), _marketMapNotifier.chartImageMap에서 chartImageMap은 Map으로 선언되어 있다. String?은 Null을 허용하고 있다. 그런데 위에 코드에서 아래와 같이 !느낌표를 사용해서 Null을 허용하지 않게 만들었다. ..
2022.03.25 -
참조 : https://dartpad.dartlang.org/?id=bf8b083f9fa31bddbd4a439cda5bbef2 DartPad dartpad.dartlang.org
Flutter] ListView 영역 두개로 분리하기참조 : https://dartpad.dartlang.org/?id=bf8b083f9fa31bddbd4a439cda5bbef2 DartPad dartpad.dartlang.org
2022.03.17