개발자의 공부방
-
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 -
https://maven.google.com/web/index.html?q=om.android.tools.build#com.android.tools.build:gradle Google's Maven Repository Welcome to Google's Maven Repository Select an artifact in the left hand pane to view details Artifacts ({{selectedNode.subnode.length}}) Versions ({{selectedNode.subnode.length}}) folder_open {{child.text}} {{item.name}} {{item.value}} {{item.value.text}} maven.google.com ht..
Flutter] gradle 오류 해결https://maven.google.com/web/index.html?q=om.android.tools.build#com.android.tools.build:gradle Google's Maven Repository Welcome to Google's Maven Repository Select an artifact in the left hand pane to view details Artifacts ({{selectedNode.subnode.length}}) Versions ({{selectedNode.subnode.length}}) folder_open {{child.text}} {{item.name}} {{item.value}} {{item.value.text}} maven.google.com ht..
2022.03.16 -
items: 항목을 정의할 수 있다. 드롭 메뉴/목록의 아이템을 정의할 수 있으며, 사용자가 선택할 수 있는 목록이다. (리스트) value: 선택된 값에 대한 것을 의미한다. style: 스타일 속성을 사용해서 글꼴 크기, 글꼴 두께 등과 같은 드롭다운 메뉴, 목록의 텍스트 스타일을 지정할 수 있다. alignment: 힌트나 선택한 항목이 버튼 내에서 배치되는 방식을 정의한다. elevation: 드롭다운 메뉴, 목록의 높이를 조정할 수 있다. icon: 버튼 아이콘을 정의한다. iconSize: 버튼 아이콘의 크기를 정의한다. iconDisabledColor: 드롭다운버튼을 비활성화 했을 때 아이콘 색상을 정의할 수 있다. iconEnabledColor: 드롭다운 버튼을 활성화했을 때 아이콘 색상을..
Flutter] DropDownButton 위젯 propertiesitems: 항목을 정의할 수 있다. 드롭 메뉴/목록의 아이템을 정의할 수 있으며, 사용자가 선택할 수 있는 목록이다. (리스트) value: 선택된 값에 대한 것을 의미한다. style: 스타일 속성을 사용해서 글꼴 크기, 글꼴 두께 등과 같은 드롭다운 메뉴, 목록의 텍스트 스타일을 지정할 수 있다. alignment: 힌트나 선택한 항목이 버튼 내에서 배치되는 방식을 정의한다. elevation: 드롭다운 메뉴, 목록의 높이를 조정할 수 있다. icon: 버튼 아이콘을 정의한다. iconSize: 버튼 아이콘의 크기를 정의한다. iconDisabledColor: 드롭다운버튼을 비활성화 했을 때 아이콘 색상을 정의할 수 있다. iconEnabledColor: 드롭다운 버튼을 활성화했을 때 아이콘 색상을..
2022.03.15 -
DropdownButton ( icon: Align( alignment: Alignment.center, child: Icon( Icons.keyboard_arrow_down, ), ), ) 1. icon을 적용한다. 2. 그 다음 Align widget 혹은 Center widget으로 감싸준다. 3. alignment 옵션을 이용해서 위치를 조정하면 된다.
Flutter] DropDownbutton의 화살표를 위치를 바꿔보자.DropdownButton ( icon: Align( alignment: Alignment.center, child: Icon( Icons.keyboard_arrow_down, ), ), ) 1. icon을 적용한다. 2. 그 다음 Align widget 혹은 Center widget으로 감싸준다. 3. alignment 옵션을 이용해서 위치를 조정하면 된다.
2022.03.15