본문 바로가기

COLOR10

Flutter 플러터: 버튼에서 패딩 제거 - FlatButton, ElevatedButton, OutlinedButton, Flutter: Remove padding in buttons - FlatButton, ElevatedButton, OutlinedButton 질문 기본 마진을 제거하려고 하는데 FlatButton의 마진을 설정/재정의할 수 없습니다. Column(children: [ Container( children: [ FractionallySizedBox( widthFactor: 0.6, child: FlatButton( color: Color(0xFF00A0BE), textColor: Color(0xFFFFFFFF), child: Text('LOGIN', style: TextStyle(letterSpacing: 4.0)), shape: RoundedRectangleBorder(side: BorderSide.none)))), Container( margin: const EdgeInsets.only(top: 0.0), child: FractionallyS.. 2023. 9. 6.
Flutter 플러터 - 텍스트 필드 힌트 색상 변경 방법?, Flutter - How to change TextField hint color? 질문 I'm a bit confused how to change the hint color of the textfield. Someone can guide me how to do it.Thanks child: TextField( style: TextStyle(fontSize: 20), decoration: InputDecoration( hintText: "Password", border: new OutlineInputBorder( borderSide: new BorderSide( color: Colors.teal, ), ), prefixIcon: const Icon( Icons.security, color: Colors.white, ), ), ), 답변 당신은 InputDecoration에서 hintSt.. 2023. 6. 24.
Flutter 텍스트 필드의 밑줄 색상을 변경하는 방법은 무엇인가요?, How to change textField underline color? 질문 I'm new to both flutter & dart. Currently, using this in one of my personal projects. In all of my form, the underline of textField is showing in blue color. I want to change that to some other color. The piece of code which I'm using is like... new TextField( controller: this._emailController, decoration: new InputDecoration( hintText: "Enter your email", labelText: "Email", labelStyle: new .. 2023. 5. 31.
Flutter에서 borderRadius가 있는 Container에 테두리 추가하기, Add border to a Container with borderRadius in Flutter 질문 Container( child: Text( 'This is a Container', textScaleFactor: 2, style: TextStyle(color: Colors.black), ), decoration: BoxDecoration( borderRadius: BorderRadius.circular(10), color: Colors.white, border: Border( left: BorderSide( color: Colors.green, width: 3, ), ), ), height: 50, ), 이것은 녹색 왼쪽 테두리가 있는 둥근 모서리 컨테이너와 "This is a Container"라는 자식 텍스트를 표시해야하지만, 둥근 모서리 컨테이너와 자식 및 왼쪽 테두리가 보이지 않습니다. .. 2023. 5. 31.