otp_animated_fields 0.1.0
otp_animated_fields: ^0.1.0 copied to clipboard
A one-time-code (OTP) input whose boxes become the loading indicator: on submit they fly from the row onto a circle and orbit it until verification resolves, then land as a check mark or shake back into place.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add otp_animated_fieldsThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
otp_animated_fields: ^0.1.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:otp_animated_fields/otp_animated_fields.dart';