archive
[flutter]기본 위젯 Text
I'mDawon
2020. 6. 7. 16:25
`
TextField
글자를 입력받는 위젯 InputDecoration 클래스와 함께 사용하면 힌트 메시지나 외곽선 등의 꾸밈 효과 간단히 추가 가능
decoration 프로퍼티를 활용하면 다양한 효과를 줄 수 있다. labelText는 안드로이드 EditText의 hint 속성이라고 보면 된다.
TextField(
obscureText: true,
decoration: InputDecoration(
border: OutlineInputBorder(),
labelText: 'Password',
),
)