개발자의 공부방
-
백앤드에서 내려주는 데이터 중 BigDecimal 형태의 데이터를 클라이언트쪽으로 보내주고 있었다. 해당 부분을 간략한 데이터와 JS 콘솔로그로 확인해보겠다. Database : MySql 필드 : decimal(36,18) 컬럼명 : tp_point 컬럼값: 1000.123456789012345679 현재 tp_point 안에는 1000이라는 정수 뒤에 총 18자리의 소수점이 있다. 이 부분을 클라이언트에서 받게 되면 결과가 1000.1234567890124 으로 받게 된다. 처음 의아했던 것은 1234567890123 다음에 4인데 왜 반올림이 된 상태로 1234567890124.. 으로 진행될까? 였다 뒷단에서 올림처리나 자릿수 절삭 로직이 있을거라고 예상했으나 큰 착각이었다 바로 결과와 원인을 설..
JS] 자바스크립트 소수점 문제백앤드에서 내려주는 데이터 중 BigDecimal 형태의 데이터를 클라이언트쪽으로 보내주고 있었다. 해당 부분을 간략한 데이터와 JS 콘솔로그로 확인해보겠다. Database : MySql 필드 : decimal(36,18) 컬럼명 : tp_point 컬럼값: 1000.123456789012345679 현재 tp_point 안에는 1000이라는 정수 뒤에 총 18자리의 소수점이 있다. 이 부분을 클라이언트에서 받게 되면 결과가 1000.1234567890124 으로 받게 된다. 처음 의아했던 것은 1234567890123 다음에 4인데 왜 반올림이 된 상태로 1234567890124.. 으로 진행될까? 였다 뒷단에서 올림처리나 자릿수 절삭 로직이 있을거라고 예상했으나 큰 착각이었다 바로 결과와 원인을 설..
2022.01.27 -
MainAxisAlignment Column는 시작점이 왼쪽 상단이 주축이다. 부모 위젯을 아무것도 두지 않은 상태에서 Column의 MainAxisAlignment.start를 하면 레이아웃은 아무것도 변하지 않는다. class _MyHomePageState extends State { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text(widget.title), ), body: Column( mainAxisAlignment: MainAxisAlignment.start, children: [ Container( width: 50.0, height: 50.0, // margin: EdgeIns..
Flutter] 기본 레이아웃 이해MainAxisAlignment Column는 시작점이 왼쪽 상단이 주축이다. 부모 위젯을 아무것도 두지 않은 상태에서 Column의 MainAxisAlignment.start를 하면 레이아웃은 아무것도 변하지 않는다. class _MyHomePageState extends State { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text(widget.title), ), body: Column( mainAxisAlignment: MainAxisAlignment.start, children: [ Container( width: 50.0, height: 50.0, // margin: EdgeIns..
2022.01.25 -
onBackAction = () => { this.moveScreen('Settings'); } ... { if(emailState === KYC_STATE_DONE && selfState === KYC_STATE_DONE && additionalState === '2') { // navigation.navigate('ConfirmRegistration') navigation.navigate('ConfirmAppPin', { pinProps: { description: i18n.t('Pincode:confirm'), // biomatrics: false }, cb: async () => { navigation.navigate('ConfirmRegistration', { action: this.onBack..
RN] react-navigation의 navigate의 action을 이용해 이동하자.onBackAction = () => { this.moveScreen('Settings'); } ... { if(emailState === KYC_STATE_DONE && selfState === KYC_STATE_DONE && additionalState === '2') { // navigation.navigate('ConfirmRegistration') navigation.navigate('ConfirmAppPin', { pinProps: { description: i18n.t('Pincode:confirm'), // biomatrics: false }, cb: async () => { navigation.navigate('ConfirmRegistration', { action: this.onBack..
2022.01.14 -
// 스텍에 쌓고 이동하기 ( 뒤로가기시 페이지로 돌아옴 ) this.props.navigation.navigate('스크린 이름 ') // 이전페이지로 돌아가기 ( 위의 navigate 를 이용하여 이동한 경우 가능 payLoad 가 2개 이상인 경우에 가능 하다 ) this.props.navigation.pop(); // 스텍의 제일 윗 페이지로 이동 this.props.navigation.popToTop() // 새롭게 컴포넌트를 스텍이 쌓는다. ( 이전에 스텍에 쌓여있으면 그걸 불러온다 ) this.props.navigation.push(); // 스텍쌓지 않고 이동하기 ( 뒤로가기시 이전페이지로 돌아갈 수 없음 ) this.props.navigation.replace('스크린이름') // 중첩된..
RN] 화면 이동하는 방법.// 스텍에 쌓고 이동하기 ( 뒤로가기시 페이지로 돌아옴 ) this.props.navigation.navigate('스크린 이름 ') // 이전페이지로 돌아가기 ( 위의 navigate 를 이용하여 이동한 경우 가능 payLoad 가 2개 이상인 경우에 가능 하다 ) this.props.navigation.pop(); // 스텍의 제일 윗 페이지로 이동 this.props.navigation.popToTop() // 새롭게 컴포넌트를 스텍이 쌓는다. ( 이전에 스텍에 쌓여있으면 그걸 불러온다 ) this.props.navigation.push(); // 스텍쌓지 않고 이동하기 ( 뒤로가기시 이전페이지로 돌아갈 수 없음 ) this.props.navigation.replace('스크린이름') // 중첩된..
2022.01.14 -
에러 메시지 Exception: null. The flutter tool cannot access the file or directory. Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user. 문제 발생 과정 1. VS Code 설치 2. Extends에서 Flutter, Dart를 설치. 3. Dart SDK 설치 4. 안드로이드 스튜디오 설치 5. CMD에서 flutter doctor -v 입력. 6. Android toolchain 에러로 인해 flutter doctor --android-licenses 명령어 실행 7. VS Code..
Flutter] 오류 해결이 안된다.에러 메시지 Exception: null. The flutter tool cannot access the file or directory. Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user. 문제 발생 과정 1. VS Code 설치 2. Extends에서 Flutter, Dart를 설치. 3. Dart SDK 설치 4. 안드로이드 스튜디오 설치 5. CMD에서 flutter doctor -v 입력. 6. Android toolchain 에러로 인해 flutter doctor --android-licenses 명령어 실행 7. VS Code..
2022.01.07