validation_textformfield 1.1.2 validation_textformfield: ^1.1.2 copied to clipboard
A new Flutter project.
Installation #
- Add the latest version of package to your pubspec.yaml (and run
dart pub get
):
dependencies:
validation_textformfield: Update version
- Import the package and use it in your Flutter App.
import 'package:validation_textformfield/validation_textformfield.dart';
Email_Validation_Textfromfiled(
when_text_field_Empty: "Please enter email",
validator_massage: "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,
);