본문 바로가기

COLOR10

Flutter 플러터에서 텍스트에 그림자를 추가하는 방법은 무엇인가요?, How to add shadow to the text in flutter? 질문 TextStyle에서 그림자 옵션을 찾아보았지만 찾을 수 없었습니다. 그래서 질문합니다: 플러터에서 텍스트에 그림자를 추가하는 방법은 무엇인가요? 가능한가요? 예시: new Text( "asd" style: new TextStyle( //그림자 추가? )); 답변 텍스트 그림자는 TextStyle의 속성으로 이 커밋부터 사용 가능합니다. 텍스트 그림자를 활성화하려면 Flutter의 최신 버전($ flutter upgrade)을 사용하고 TextStyle.shadows에 List를 제공하십시오: import 'dart:ui'; ... Text( '안녕하세요, 세계!', style: TextStyle( shadows: [ Shadow( offset: Offset(10.0, 10.0), blurRadiu.. 2023. 10. 1.
Flutter 플러터에서 TextFormField의 입력 텍스트 색상을 변경하는 방법, How to change TextFormField input text color in Flutter 질문 대학에서 플러터 앱의 UI를 만들고 있습니다. TextFormField에 입력된 텍스트를 흰색으로 표시하고 싶습니다. 이는 불필요하게 어렵습니다. 구글링 등을 시도해 보았지만 명확한 답변을 찾을 수 없습니다. new Theme( // 이는 밑줄의 색상을 지정합니다 data: theme.copyWith( primaryColor: Colors.white, hintColor: Colors.transparent, ), child: new Padding( padding: const EdgeInsets.fromLTRB(32.0, 40.0, 32.0, 4.0), child: TextFormField( key: Key('username'), keyboardType: TextInputType.text, contro.. 2023. 9. 29.
Flutter 수직 구분선이 표시되지 않습니다., Vertical Divider not showing 질문 저는 VerticalDivider 위젯을 사용하여 Row에서 항목을 분리하려고 합니다. 여기에서 전체 본문을 확인할 수 있습니다. Row: Row( children: [ Text('420 게시물', style: TextStyle(color: Color(0xff666666)),), VerticalDivider( thickness: 2, width: 20, color: Colors.black, ), Text('420 게시물', style: TextStyle(color: Color(0xff666666)),) ], ), 답변 당신의 Row를 IntrinsicHeight로 감싸세요, IntrinsicHeight( child: Row( children: [ Text('420 게시물', style: TextSt.. 2023. 9. 28.
Flutter에서 Row()의 배경색을 설정하는 방법은 무엇인가요?, How to set the background color of a Row() in Flutter? 질문 I'm trying to set up a background color for a Row() widget, but Row itself has no background color or color attribute. I've been able to set the background color of a container to grey, right before the purple-backgrounded text, but the text itself does not fill the background completely and the following spacer does not take any color at all. So how can I have the Row background set to the ".. 2023. 9. 21.