|
|
|
@ -22,13 +22,17 @@ class OtpDialog extends StatelessWidget {
|
|
|
|
return Container(
|
|
|
|
return Container(
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
padding: EdgeInsets.all(24),
|
|
|
|
padding: EdgeInsets.all(24),
|
|
|
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
color: Colors.yellow,
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
"Please insert OTP Code".toText24(),
|
|
|
|
"Please insert OTP Code".toText24(),
|
|
|
|
20.height,
|
|
|
|
20.height,
|
|
|
|
OTPWidget(
|
|
|
|
Center(
|
|
|
|
|
|
|
|
child: OTPWidget(
|
|
|
|
autoFocus: true,
|
|
|
|
autoFocus: true,
|
|
|
|
controller: _pinPutController,
|
|
|
|
controller: _pinPutController,
|
|
|
|
defaultBorderColor: const Color(0xffD8D8D8),
|
|
|
|
defaultBorderColor: const Color(0xffD8D8D8),
|
|
|
|
@ -37,14 +41,15 @@ class OtpDialog extends StatelessWidget {
|
|
|
|
pinBoxColor: Colors.white,
|
|
|
|
pinBoxColor: Colors.white,
|
|
|
|
onDone: (code) => _onOtpCallBack(code, null),
|
|
|
|
onDone: (code) => _onOtpCallBack(code, null),
|
|
|
|
textBorderColor: const Color(0xffD8D8D8),
|
|
|
|
textBorderColor: const Color(0xffD8D8D8),
|
|
|
|
pinBoxWidth: 60,
|
|
|
|
pinBoxWidth: 48,
|
|
|
|
pinBoxHeight: 60,
|
|
|
|
pinBoxHeight: 48,
|
|
|
|
pinTextStyle: const TextStyle(fontSize: 24.0, color: MyColors.darkTextColor),
|
|
|
|
pinTextStyle: const TextStyle(fontSize: 24.0, color: MyColors.darkTextColor),
|
|
|
|
pinTextAnimatedSwitcherTransition: ProvidedPinBoxTextAnimation.scalingTransition,
|
|
|
|
pinTextAnimatedSwitcherTransition: ProvidedPinBoxTextAnimation.scalingTransition,
|
|
|
|
pinTextAnimatedSwitcherDuration: const Duration(milliseconds: 300),
|
|
|
|
pinTextAnimatedSwitcherDuration: const Duration(milliseconds: 300),
|
|
|
|
pinBoxRadius: 10,
|
|
|
|
pinBoxRadius: 8,
|
|
|
|
keyboardType: TextInputType.number,
|
|
|
|
keyboardType: TextInputType.number,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
// Row(
|
|
|
|
// Row(
|
|
|
|
// children: [
|
|
|
|
// children: [
|
|
|
|
// Expanded(
|
|
|
|
// Expanded(
|
|
|
|
@ -90,6 +95,7 @@ class OtpDialog extends StatelessWidget {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|