textfield_flutter 0.0.1 copy "textfield_flutter: ^0.0.1" to clipboard
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'))
}

}

2
likes
140
points
10
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Homepage

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on textfield_flutter