A
-
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 -
Getter와 Setter에 대해서 알아보자. 1. get 함수 const numbers = { a: 1, b: 2, get sum() { console.log('sum 함수 실행!') return this.a + this.b; } }; console.log(numbers.a) numbers.b = 5; console.log(numbers.sum) get 함수는 특정 함수를 조회하려고 할 때 특정 코드를 실행시키고 연산된 값을 받아서 사용할 수 있다. numbers() 이런 식으로 사용하지 않아도 된다. const dog = { _name: '멍멍이', set name(value) { //params를 무조건 설정해야한다. console.log('이름이 바뀐다' + value) this._name = v..
javascript] getter setterGetter와 Setter에 대해서 알아보자. 1. get 함수 const numbers = { a: 1, b: 2, get sum() { console.log('sum 함수 실행!') return this.a + this.b; } }; console.log(numbers.a) numbers.b = 5; console.log(numbers.sum) get 함수는 특정 함수를 조회하려고 할 때 특정 코드를 실행시키고 연산된 값을 받아서 사용할 수 있다. numbers() 이런 식으로 사용하지 않아도 된다. const dog = { _name: '멍멍이', set name(value) { //params를 무조건 설정해야한다. console.log('이름이 바뀐다' + value) this._name = v..
2021.12.29