Updated gradle and kotlin

This commit is contained in:
Abdullah Alassaf
2025-01-26 20:38:37 +03:00
parent 4ae04cf2af
commit 457b7c2c51
8 changed files with 103 additions and 286 deletions

View File

@ -109,22 +109,19 @@ class VerificationCodePage extends StatelessWidget {
children: [
Expanded(
child: InkWell(
onTap: state is TimerState &&
!state.isButtonEnabled &&
state.remainingTime != 1
? null
: () {
_bloc.add(StartTimerEvent());
},
onTap:
state is TimerState && !state.isButtonEnabled && state.remainingTime != 1
? null
: () {
_bloc.add(StartTimerEvent());
},
child: Container(
padding: const EdgeInsets.only(
right: 20, left: 20, top: 15, bottom: 15),
padding: const EdgeInsets.only(right: 20, left: 20, top: 15, bottom: 15),
decoration: BoxDecoration(
color: state is TimerState && !state.isButtonEnabled
? ColorsManager.blueButton
: ColorsManager.blueColor,
borderRadius:
BorderRadius.all(Radius.circular(20))),
borderRadius: BorderRadius.all(Radius.circular(20))),
child: Center(
child: Center(
child: Text(
@ -132,8 +129,7 @@ class VerificationCodePage extends StatelessWidget {
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.w700,
color: state is TimerState &&
!state.isButtonEnabled
color: state is TimerState && !state.isButtonEnabled
? Colors.white
: ColorsManager.onPrimaryColor,
),
@ -146,24 +142,18 @@ class VerificationCodePage extends StatelessWidget {
Expanded(
child: InkWell(
onTap: () {
context
.read<SecurityBloc>()
.add(VerifyPassCodeEvent());
context.read<SecurityBloc>().add(VerifyPassCodeEvent());
},
child: Container(
padding: const EdgeInsets.only(
right: 20, left: 20, top: 15, bottom: 15),
padding: const EdgeInsets.only(right: 20, left: 20, top: 15, bottom: 15),
decoration: const BoxDecoration(
color: ColorsManager.blueColor,
borderRadius:
BorderRadius.all(Radius.circular(20))),
borderRadius: BorderRadius.all(Radius.circular(20))),
child: const Center(
child: Text(
"Verify",
style: TextStyle(
fontSize: 16,
color: Colors.white,
fontWeight: FontWeight.w700),
fontSize: 16, color: Colors.white, fontWeight: FontWeight.w700),
),
),
),