본문 바로가기

type3

Flutter 플러터 - 플러터에서 숫자 키보드에 완료 버튼을 추가하는 방법, Flutter - how to add done button in number keyboard in flutter 질문 나는 TextFormField에서 숫자 형식 입력에 done 버튼을 추가하려고 시도하고 있지만, 그렇게 할 수 없었습니다. TextFormField( key: Key(keyValue), initialValue: valueBuilder, onSaved: (text) { fieldsController.text = text.trim(); }, inputFormatters: [inputFormatters], keyboardType: TextInputType.phoneNumber,) 아래와 같은 키보드를 입력 텍스트 폼 필드에 생성하고 싶습니다. 답변 Change keyboardType: TextInputType.number to keyboardType: TextInputType.numberWithOptio.. 2023. 12. 11.
Python 데이터프레임 행 섞기, Shuffle DataFrame rows 질문 다음과 같은 DataFrame이 있습니다: Col1 Col2 Col3 Type 0 1 2 3 1 1 4 5 6 1 ... 20 7 8 9 2 21 10 11 12 2 ... 45 13 14 15 3 46 16 17 18 3 ... DataFrame은 CSV 파일에서 읽어옵니다. Type이 1인 모든 행은 맨 위에 있으며, 그 다음으로 Type이 2인 행이, 그리고 그 다음으로 Type이 3인 행이 등장합니다. DataFrame의 행 순서를 섞어서 모든 Type이 섞인 결과를 얻고 싶습니다. 가능한 결과는 다음과 같을 수 있습니다: Col1 Col2 Col3 Type 0 7 8 9 2 1 13 14 15 3 ... 20 1 2 3 1 21 10 11 12 2 ... 45 4 5 6 1 46 16 17.. 2023. 7. 3.
Flutter 플러터 BottomNavigationBar는 세 개 이상의 항목으로 작동하지 않습니다., Flutter BottomNavigationBar not working with more than three items 질문 Flutter (0.6)에서 BottomNavigationBar에 문제가 있습니다. 자식으로 3개 이상의 BottomNavigationBarItems를 추가하면, 바의 버튼이 흰색 아이콘으로 꼬여 나옵니다. 3개 이하의 항목만 사용하면 모든 것이 정상입니다. 여기에는 바를 깨뜨리는 위젯 코드가 있습니다: bottomNavigationBar: BottomNavigationBar( currentIndex: 0, iconSize: 20.0, items: [ BottomNavigationBarItem( title: Text('Home'), icon: Icon(Icons.accessibility)), BottomNavigationBarItem( title: Text('Preise'), icon: Icon(I.. 2023. 6. 18.