Flutter edit configuration 안드로이드스튜디오/플러터 실행
·
Flutter
폴더로 불러 온 파일 실행을 시키려고 하는데 어떤 방법으로 실행 시켜야 할지가 나오지 않는다. 이럴 때 해결 하는 방법을 알아보쟈! Edit Configurations 클릭 Fix 클릭 경로 설정 경로는 환경변수 설정해 주었던 bin으로 지정한다!
Flutter 공통위젯으로 사용 할 콤보박스(comboBox) 위젯 만들기
·
Flutter
flutter 에서 아래의 그림과 같이 동일한 스타일의 콤보박스를 사용하기 위해 전역적인 콤보박스를 만들어주려고한다. CommonCombo.dart 공통으로 쓰일 Widget들을 모아 놓는 file 에서 아래와 같이 작성 해 준다. Widget comboBox({required RxList comboList, required RxString selectedData, required Function(String value) onSearchClick}){ return Row( mainAxisAlignment: MainAxisAlignment.center, children: [ Container( width:130, height: 40, color: CommonColor.bgDarkMode, child: Ob..
Flutter toggleButtons 만들기
·
Flutter
이렇게 달러를 클릭하면 달러의 주식가격이 원을 클릭하면 원화 가격이 나오게 토글버튼을 구현 해보려고 한다. 먼저 토글 버튼과 금액을 다른 컨테이너로 움직이기 때문에 (눈속임... 이라고 할 수 있음) 토글 버튼을 먼저 구현 하는 것을 정리해 보려고 한다. 코드는 아래와 같고 토글 버튼은 켰다 껐다 의 개념으로 true, false 를 주어 해당 버튼이 어떤 상태인지 인지하게 해준다. isSelected = [ture, false]; ToggleButtons( fillColor: Colors.grey, selectedColor: Colors.white, selectedBorderColor: Colors.white, onPressed: (int index) { for (int buttonIndex = 0; ..
Flutter ElevatedButton 스타일 지정하기
·
Flutter
flutter 에서 기본적으로 가장 많이 사용하는 ElevatedButton의 스타일을 지정 해보자! 원래는 '최대' 와 같은 버튼이 기본적으로 제공하는 버튼 스타일인데 사이즈와 색상을 설정해서 '현금매수' 나 그 옆의 버튼 처럼 커스텀 할 수 있다. ElevatedButton( onPressed: () {}, style: ButtonStyle( backgroundColor: MaterialStateProperty.all(Colors.red), foregroundColor: MaterialStateProperty.all(Colors.white), fixedSize: MaterialStateProperty.all(Size.fromHeight(48)), ), child: const Text('현금매수', s..
해니01_15
'분류 전체보기' 카테고리의 글 목록 (32 Page)