tiny_forms 0.1.0+3 copy "tiny_forms: ^0.1.0+3" to clipboard
tiny_forms: ^0.1.0+3 copied to clipboard

TinyForms is a minimalistic Flutter package for building simple and lightweight forms with easy customization and validation.

Tiny Forms #

[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link] Powered by Mason [![License: MIT][license_badge]][license_link]

TinyForms is a minimalistic Flutter package for building simple and lightweight forms with easy customization and validation.

Installation 💻 #

❗ In order to start using Tiny Forms you must have the [Flutter SDK][flutter_install_link] installed on your machine.

Add tiny_forms to your pubspec.yaml:

dependencies:
  tiny_forms:

Install it:

flutter packages get

Example #

Column(
  children: [
    TextFormField(
      controller: TextEditingController(),
    ).register(name: 'username'),
    // Validation using the form_validator package
    TextFormField(
      controller: TextEditingController(),
      validator: ValidationBuilder().minLength(5).build(),
    ).register(name: 'username'),
    ElevatedButton(
      onPressed: formClient.handleSubmit((data) {
        debugPrint(data.toString());
      }),
      child: const Text('Submit'),
    ),
  ],
),
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

TinyForms is a minimalistic Flutter package for building simple and lightweight forms with easy customization and validation.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

equatable, flutter, flutter_bloc

More

Packages that depend on tiny_forms