입력을 받는 공간을 만들기 위해서 TextFormField를 사용해야 합니다. 입력 받는 공간은 무엇이냐구요?
아래와 같이 입력받는 화면을 많이 보셨을 텐데요 . 그렇게 어렵지 않아요.
근데 흔히 아시는 테두리 모양, 클릭했을 때 모습을 바꾸기 위해서는 InputDecoration 안에서 정의해야 합니다. 우선 InputDecoration 보면 좋을 것 같네요.
지금부터 TextFormField 의 속성 중에서 InputDecoration 먼저 살펴보도록 하겠습니다. 먼저 공식문서 예제부터 훑어보기 https://api.flutter.dev/flutter/material/InputDecoration-class.html InputDecoration class - material library - Dart API description InputDecoration class The border, labels, icons, and styles used to decorate a Materia...
#
flutter
#
InputDecoration