|
|
|
|
@ -9,6 +9,8 @@ import 'package:test_sa/modules/cm_module/cm_detail_provider.dart';
|
|
|
|
|
import 'package:test_sa/new_views/app_style/app_color.dart';
|
|
|
|
|
import 'package:test_sa/new_views/common_widgets/app_lazy_loading.dart';
|
|
|
|
|
import 'package:test_sa/new_views/common_widgets/default_app_bar.dart';
|
|
|
|
|
import 'package:test_sa/views/widgets/item_views/info_header_widget.dart';
|
|
|
|
|
import 'package:test_sa/views/widgets/item_views/info_text_widget.dart';
|
|
|
|
|
|
|
|
|
|
class VerifyOtpView extends StatelessWidget {
|
|
|
|
|
const VerifyOtpView({Key? key}) : super(key: key);
|
|
|
|
|
@ -18,14 +20,14 @@ class VerifyOtpView extends StatelessWidget {
|
|
|
|
|
final defaultPinTheme = PinTheme(
|
|
|
|
|
width: 51.toScreenWidth,
|
|
|
|
|
height: 63.toScreenHeight,
|
|
|
|
|
textStyle: const TextStyle(fontSize: 22, color: Colors.black),
|
|
|
|
|
textStyle: TextStyle(fontSize: 24, color: AppColor.headingTextColor(context)),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: AppColor.neutral100,
|
|
|
|
|
color: AppColor.background(context),
|
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
|
border: Border.all(color: AppColor.border2Color(context)),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
return Scaffold(
|
|
|
|
|
backgroundColor: AppColor.neutral100,
|
|
|
|
|
appBar: DefaultAppBar(title: context.translation.askOtpFromRequester),
|
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
|
child: Column(
|
|
|
|
|
@ -34,16 +36,16 @@ class VerifyOtpView extends StatelessWidget {
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
context.translation.verify.heading6(context).custom(color: AppColor.black10),
|
|
|
|
|
7.height,
|
|
|
|
|
context.translation.otpSentToNumber.bodyText2(context).custom(color: AppColor.neutral120),
|
|
|
|
|
InfoHeader16Widget(context.translation.verify),
|
|
|
|
|
6.height,
|
|
|
|
|
InfoTextWidget(label: context.translation.otpSentToNumber, isMsg: true, showEmptyValue: true),
|
|
|
|
|
Center(
|
|
|
|
|
child: Pinput(
|
|
|
|
|
length: 4,
|
|
|
|
|
defaultPinTheme: defaultPinTheme,
|
|
|
|
|
focusedPinTheme: defaultPinTheme.copyWith(
|
|
|
|
|
decoration: defaultPinTheme.decoration?.copyWith(
|
|
|
|
|
border: Border.all(color: AppColor.neutral100),
|
|
|
|
|
border: Border.all(color: AppColor.primary10),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
onCompleted: (pin) async {
|
|
|
|
|
@ -67,24 +69,16 @@ class VerifyOtpView extends StatelessWidget {
|
|
|
|
|
).paddingOnly(top: 24, bottom: 24),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
context.translation.resendIn.bodyText2(context).custom(color: AppColor.neutral120),
|
|
|
|
|
7.width,
|
|
|
|
|
InfoTextWidget(label: context.translation.resendIn, isMsg: true, showEmptyValue: true),
|
|
|
|
|
6.width,
|
|
|
|
|
ValueListenableBuilder<String>(
|
|
|
|
|
//add actual timer value...
|
|
|
|
|
valueListenable: ValueNotifier("0:00"),
|
|
|
|
|
builder: (context, value, _) {
|
|
|
|
|
return Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
value.bodyText2(context).custom(
|
|
|
|
|
color: context.isDark ? AppColor.neutral10 : AppColor.neutral120,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
return InfoTextWidget(label: value, isMsg: true, showEmptyValue: true);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
7.width,
|
|
|
|
|
6.width,
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {},
|
|
|
|
|
child: Text(
|
|
|
|
|
@ -105,9 +99,9 @@ class VerifyOtpView extends StatelessWidget {
|
|
|
|
|
24.height,
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
spacing: 4,
|
|
|
|
|
children: [
|
|
|
|
|
context.translation.havingTroubleReceivingOtp.heading6(context).custom(color: AppColor.black10),
|
|
|
|
|
3.height,
|
|
|
|
|
InfoHeader16Widget(context.translation.havingTroubleReceivingOtp),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
|