flutter_verification_code 0.1.3
flutter_verification_code: ^0.1.3 copied to clipboard
A Flutter package that help you create a verification input.
flutter_verification_code #
-
A Flutter package that help you create a verification input.
-
Based on https://github.com/tiny-express/flutter_verification_code_input.
-
Added state change in case user delete char after complete fill, take a look an example on Stackoverflow
Installing #
flutter_verification_code:
git:
url: https://github.com/awaik/flutter_verification_code.git
version: ^0.1.3
import 'flutter_verification_code.dart';
Usage #
VerificationCode(
keyboardType: TextInputType.number,
length: 4,
autofocus: true,
onCompleted: (String value) {
//...
print(value);
},
)
onEditing: (bool value) {
setState(() {
_onEditing = value;
});
},
Center(
child: (_onEditing != true)
? Text('Your code: $_code')
: Text('Please enter full code'),
),
Showcase #
[Showcase|100x100, 10%]