open:textformfield-name

TextFormField Name

TextFormField(
  decoration: const InputDecoration(labelText: '이름'),
  controller: controller.nameController,
  textInputAction: TextInputAction.done,
  onSaved: (String? newValue) => newValue?.trim(),
  validator: (String? value) {
    if (value!.isEmpty) {
      return '1자 이상 입력해주세요.';
    }
    return null;
  },
),


  • open/textformfield-name.txt
  • 마지막으로 수정됨: 2023/07/14 06:04
  • 저자 MORO