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

outdated

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
0
points
24
downloads

Publisher

verified publisherdarray.co

Weekly Downloads

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

Homepage

License

unknown (license)

Dependencies

flutter

More

Packages that depend on d_pin