d_pin 0.0.4 copy "d_pin: ^0.0.4" to clipboard
d_pin: ^0.0.4 copied to clipboard

Otp and pin input field with and without button and fully customized, with box or underline design.

DPin #

Otp and pin input field with and without button and fully customized.

Demo #

Patron #

Become a Patron!

Setup #

dependencies:
  DPin: 0.0.1
import 'package:d_pin/d_pin.dart';

#Ecample

DPin(
  buttonColor: Colors.blue,
  buttonText: "Confirm",
  number: 6,
  fieldBorderColor: Colors.blue,
  withButton: true,
  onValueChanged: (v) {
    setState(() {
      value = v;
    });
  },
)

Properties #

  /// How many box you need
  final int number;

  /// visible or secured
  final bool hidden;

  /// Box color
  final Color fieldBorderColor;

  /// Button text
  final String buttonText;

  /// Button color
  final Color buttonColor;

  /// Button text color
  final Color buttonTextColor;

  /// Button width
  final double buttonWidth;

  /// Box or underline
  final bool underline;

  /// With button or last button filled
  final bool withButton;

  /// Return result
  final ValueChanged<int> onValueChanged;
1
likes
80
pub points
14%
popularity

Publisher

verified publisherdarray.co

Otp and pin input field with and without button and fully customized, with box or underline design.

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on d_pin