v2.2.5validation_textformfield
Flutter 텍스트 필드 검증을 사용하면 Flutter 앱에서 다양한 텍스트 폼 필드를 검증할 수 있습니다.
37좋아요 5530일 다운로드130Pub 점수
AndroidiOSWebmacOSWindowsLinux
Flutter 텍스트 필드 검증을 사용하면 Flutter 앱에서 다양한 텍스트 폼 필드를 검증할 수 있습니다
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
dart pub get):dependencies:
validation_textformfield: Update version
import 'package:validation_textformfield/validation_textformfield.dart';
A Flutter package for launching a Validation TextFormField . Supports iOS, Android, web, Windows, macOS, and Linux.
EmailValidationTextField(
whenTextFieldEmpty: "Please enter email",
validatorMassage: "Please enter valid email",
decoration: InputDecoration(
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.black, width: 0.5),
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.black, width: 0.5),
),
border: OutlineInputBorder(),
counterText: '',
hintStyle: TextStyle(color: Colors.black, fontSize: 18.0)),
textEditingController: txtEmailCtrl,
)
PassWordValidationTextFiled(
lineIndicator:false,
passwordMinError: "Must be more than 5 charater",
hasPasswordEmpty: "Password is Empty",
passwordMaxError: "Password to long",
passWordUpperCaseError: "at least one Uppercase (Capital)lette",
passWordDigitsCaseError: "at least one digit",
passwordLowercaseError: "at least one lowercase character",
passWordSpecialCharacters: "at least one Special Characters",
obscureText: _isObscure,
scrollPadding: EdgeInsets.only(left: 60),
onChanged: (value) {
// print(value);
},
passTextEditingController: txtPasswordCtrl,
passwordMaxLength: 10,
passwordMinLength: 5,
),
ConfirmPassWordValidationTextFromField(
obscureText: _isObscure,
// obscureText: _isObscure,
scrollPadding: EdgeInsets.only(left: 60),
onChanged: (value) {
// print(value);
},
whenTextFieldEmpty: "Empty",
validatorMassage: "Password not Match",
confirmtextEditingController: txtConfPasswordCtrl,
// passtControllername:txtPasswordCtrl
),
See the example app for more complex examples.
BasicPassword
passwordLiner
For help getting started with Flutter, view our online documentation.