개발자의 공부방
-
final _valueList = ['최대', '50%', '25%', '15%', '10%']; String? _selectedValue; ... 생략 Container( child: DropdownButton( hint: Text('비율'), items: _valueList .map( (String item) => DropdownMenuItem( child: Text(item), value: item, ), ) .toList(), onChanged: (String? value) => setState(() { print('==> ${this._selectedValue}'); print('==> selected $value'); this._selectedValue = value; }), value: _s..
Flutter] DropdownButton으로 DropBox 구현하기final _valueList = ['최대', '50%', '25%', '15%', '10%']; String? _selectedValue; ... 생략 Container( child: DropdownButton( hint: Text('비율'), items: _valueList .map( (String item) => DropdownMenuItem( child: Text(item), value: item, ), ) .toList(), onChanged: (String? value) => setState(() { print('==> ${this._selectedValue}'); print('==> selected $value'); this._selectedValue = value; }), value: _s..
2022.03.15 -
class _MarketOrderBookState extends State { final _isSelected = [true, false, false]; } child: ToggleButtons( constraints: BoxConstraints.expand( width: (constraints.maxWidth - 4) / 3), color: Color(0xff8d8d8d), fillColor: Color(0xff4063ae), selectedColor: Color(0xffffffff), children: [ Wrap( children: [ Padding( padding: const EdgeInsets.only(right: 2.0), child: Icon( Icons.monetization_on, siz..
Flutter] ToggleButtons으로 선택 버튼 구현하기class _MarketOrderBookState extends State { final _isSelected = [true, false, false]; } child: ToggleButtons( constraints: BoxConstraints.expand( width: (constraints.maxWidth - 4) / 3), color: Color(0xff8d8d8d), fillColor: Color(0xff4063ae), selectedColor: Color(0xffffffff), children: [ Wrap( children: [ Padding( padding: const EdgeInsets.only(right: 2.0), child: Icon( Icons.monetization_on, siz..
2022.03.15 -
child: FloatingActionButton( backgroundColor: Color(0xfff8f8f8), elevation: 0, onPressed: () {}, child: Icon( Icons.minimize_outlined, color: Color(0xff828282), ), ), elevation: 0, hoverElevation: 0, focusElevation: 0, highlightElevation: 0, elevation 옵션을 0으로 하면 플로팅버튼에서 그림자가 삭제된다.
Flutter] FloatingActionButton에서 그림자 제거child: FloatingActionButton( backgroundColor: Color(0xfff8f8f8), elevation: 0, onPressed: () {}, child: Icon( Icons.minimize_outlined, color: Color(0xff828282), ), ), elevation: 0, hoverElevation: 0, focusElevation: 0, highlightElevation: 0, elevation 옵션을 0으로 하면 플로팅버튼에서 그림자가 삭제된다.
2022.03.14 -
윈도우 기준으로 작성한다. 1. ctrl + shift + p 2. Open Keyboard Shortcuts(JSON) 선택 후 아래 코드를 붙여넣는다 (배열 안에 오브젝트니깐 잘 보고 하시길) [ { "key": "ctrl+n", "command": "explorer.newFile", "when": "explorerViewletFocus" }, { "key": "ctrl+shift+n", "command": "explorer.newFolder", "when": "explorerViewletFocus" }, ] 3. Keyboard Shortcuts 설정 창에서 기존에 있던 ctrl+n과 ctrl+shift+n을 삭제한다. (기존에는 아무것도 없는 파일 만들기와 vscode 새창을 불러오는 단축키로 지..
vscode] 새파일, 새폴더 단축키 설정하는 방법 feat. 윈도우 기준윈도우 기준으로 작성한다. 1. ctrl + shift + p 2. Open Keyboard Shortcuts(JSON) 선택 후 아래 코드를 붙여넣는다 (배열 안에 오브젝트니깐 잘 보고 하시길) [ { "key": "ctrl+n", "command": "explorer.newFile", "when": "explorerViewletFocus" }, { "key": "ctrl+shift+n", "command": "explorer.newFolder", "when": "explorerViewletFocus" }, ] 3. Keyboard Shortcuts 설정 창에서 기존에 있던 ctrl+n과 ctrl+shift+n을 삭제한다. (기존에는 아무것도 없는 파일 만들기와 vscode 새창을 불러오는 단축키로 지..
2022.03.03 -
brew 설치하기 맥에서 Homebrew를 설치해줍니다. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" https://brew.sh/index_ko Homebrew The Missing Package Manager for macOS (or Linux). brew.sh 설치가 완료되면 gh를 설치합니다. brew install gh brew 플러그인 목록 확인하기 brew에 어떤 플러그인이 확인해봅니다. 이 중에 gh가 있으면 됩니다. brew에 뭐가 있는지 궁금해서 이 명령어를 사용했습니다만 그냥 gh --version를 써서 확인해도 됩니다. brew list github 로그인..
brew] gh를 이용해서 git clone 하기brew 설치하기 맥에서 Homebrew를 설치해줍니다. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" https://brew.sh/index_ko Homebrew The Missing Package Manager for macOS (or Linux). brew.sh 설치가 완료되면 gh를 설치합니다. brew install gh brew 플러그인 목록 확인하기 brew에 어떤 플러그인이 확인해봅니다. 이 중에 gh가 있으면 됩니다. brew에 뭐가 있는지 궁금해서 이 명령어를 사용했습니다만 그냥 gh --version를 써서 확인해도 됩니다. brew list github 로그인..
2022.02.10