bs_flutter_inputtext 1.1.0 copy "bs_flutter_inputtext: ^1.1.0" to clipboard
bs_flutter_inputtext: ^1.1.0 copied to clipboard

outdated

Input text with many variations of appearance and form

Getting Started #

Add the dependency in pubspec.yaml:

dependencies:
  ...
  bs_flutter_inputtext: any

Text Input #

Example: example.dart

Alt text

Small Input Text with Outline Border

// ...
  BsInput(
    size: BsInputSize.sm,
    hintText: 'Small input',
    controller: TextEditingController(),
    validators: [
      BsValidator.required
    ],
  ),
// ...

Small Input Text with Border Bottom

//...
  BsInput(
    style: BsInputStyle.outlineBottom,
    size: BsInputSize.outlineBottomSm,
    hintTextLabel: 'Small input',
    controller: TextEditingController(),
  ),
//...

BsValidator is custom validator, you can create yours validator using BsValidator Example:

  static BsValidator get required => BsValidator(
    validator: (value) {
      String valueValidate = value.toString().trim();
      if(valueValidate.isEmpty) return "Field tidak boleh kosong";

      return null;
    },
  );

validator properties will call when form on validating

2
likes
0
pub points
31%
popularity

Publisher

unverified uploader

Input text with many variations of appearance and form

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

bs_flutter_utils, flutter, flutter_web_plugins

More

Packages that depend on bs_flutter_inputtext