textfield_flutter 0.0.1
textfield_flutter: ^0.0.1 copied to clipboard
A customizable Flutter text input widget that displays validation errors with an icon. Includes options for custom error messages, icons, borders, and text styling for enhanced user feedback.
Flutter Textfield #
Installation 💻 #
❗ In order to start using Flutter Textfield you must have the [Flutter SDK][flutter_install_link] installed on your machine.
Install via flutter pub add:
dart pub add flutter_textfield
To view the generated coverage report you can use lcov.
# Generate Coverage Report
genhtml coverage/lcov.info -o coverage/
# Open Coverage Report
open coverage/index.html
...dart class CustomTextField extends StatelessWidget { const CustomTextField({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return FlutterTextfield(
controller: _controller, // Can be null
hintText: 'Enter text',
validator: (value) => value!.isEmpty? 'Field cannot be empty' : null,
onChanged: (value) => print('Text changed: $value'))
}
}