v2.2.0sms_otp_auto_verify
एक नया Flutter प्लगइन जो सामान्यतः संदेश ओटीपी कोड के मामलों में एक अंक कोड दर्ज करने के लिए है। और SMS रिट्रीवर API लाइब्रेरी का उपयोग करके SMS स्वचालित भरें प्रदान करता है।
93लाइक 7330-दिन डाउनलोड140Pub अंक
Android
oohyugi/sms_otp_auto_verify open-source repository details.
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
A new Flutter plugin to enter a digit code usually in cases of Sms Otp Code. and provide SMS Auto Fill using library SMS Retriever API.
import 'package:sms_otp_auto_verify/sms_otp_auto_verify.dart';
String? signature = await SmsVerification.getAppSignature();
codeLength must equals with Sms OTP Code length
TextFieldPin(
textController: textEditingController,
autoFocus: true,
codeLength: _otpCodeLength,
alignment: MainAxisAlignment.center,
defaultBoxSize: 46.0,
margin: 10,
selectedBoxSize: 46.0,
textStyle: TextStyle(fontSize: 16),
defaultDecoration: _pinPutDecoration.copyWith(
border: Border.all(
color: Theme.of(context)
.primaryColor
.withOpacity(0.6))),
selectedDecoration: _pinPutDecoration,
onChange: (code) {
_onOtpCallBack(code,false);
}),
_onOtpCallBack(String otpCode, bool isAutofill) {
setState(() {
this._otpCode = otpCode;
if (otpCode.length == _otpCodeLength && isAutofill) {
_enableButton = false;
_isLoadingButton = true;
_verifyOtpCode();
} else if (otpCode.length == _otpCodeLength && !isAutofill) {
_enableButton = true;
_isLoadingButton = false;
}else{
_enableButton = false;
}
});
}
<#> ExampleApp: Your code is 5664
r64Iw/6mD1D
निर्भरता सूची 2 आइटम
{"sdk":"flutter"}{"sdk":"flutter"}उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗