Texfield 유효성 검사 공급자의 떨림

코드 예제

0
0

텍스트 분야 유효성 검사에서 플러터

TextFormField(
  // The validator receives the text that the user has entered.
  validator: (value) {
    if (value == null || value.isEmpty) {
      return 'Please enter some text';
    }
    return null;
  },
),

/*
	The TextFormField widget renders a material design 
    text field and can display validation errors when 
    they occur.

	Validate the input by providing a validator() function 
    to the TextFormField. If the user’s input isn’t valid, 
    the validator function returns a String containing an 
    error message. If there are no errors, the validator 
    must return null.

	For this example, We create a validator that ensures the TextFormField 
    isn’t empty. If it is empty, then we return a friendly error message.
*/

비슷한 페이지

예제가있는 유사한 페이지

다른 언어로

이 페이지는 다른 언어로되어 있습니다

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................