bond_form 0.0.1+20 copy "bond_form: ^0.0.1+20" to clipboard
bond_form: ^0.0.1+20 copied to clipboard

Form is a Bond package provides a convenient way to handle Form.

example/example.md

Basic usage: #

final loginForm = FormStateNotifier<String, Error>(
  fields: {
    'email': TextFieldState(null, label: 'Email'),
    'password': TextFieldState(null, label: 'Password'),
  },
);

// Update the form fields
loginForm.updateText('email', 'johndoe@gmail.com');
loginForm.updateText('password', 'password123');

// Print the updated values
print('Email value: ${loginForm.textFieldValue('email')}');
print('Password value: ${loginForm.textFieldValue('password')}');

// Let's assume we want to submit the form now
loginForm.submit();

Documentation #

For a comprehensive guide on how to use form_bond, please refer to the full documentation available in the bond_docs repository under the forms.md file.

Read Full Documentation Here

2
likes
120
pub points
51%
popularity

Publisher

unverified uploader

Form is a Bond package provides a convenient way to handle Form.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

bond_core, flutter, intl, meta

More

Packages that depend on bond_form