Skip to content

Commit

Permalink
#187 calling GetDataAgreement while click on skip
Browse files Browse the repository at this point in the history
calling GetDataAgreement while click on skip
  • Loading branch information
lijogeorgep authored and georgepadayatti committed Nov 14, 2023
1 parent 4faf1df commit 858e001
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
17 changes: 17 additions & 0 deletions lib/app/modules/register/controllers/register_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,23 @@ class RegisterController extends BaseController {
hideLoading();
}
}
onSkipTap()async{

try {
getDataAgreement(sharingtoken:accessToken,sharingDataAgreementID:"65534a939a6116c5c2b98d51",isFlag:true);
// Handle success
int index = selectedPage.value + 1;
pageController.animateToPage(
index,
duration: const Duration(milliseconds: 500),
curve: Curves.ease,
);

} catch (e) {
GetSnackToast(message: e.toString());
}
}


Future<void> onNextButtonTap() async {
String pattern = r'(^(?:[+0]9)?[0-9]{10,12}$)';
Expand Down
5 changes: 1 addition & 4 deletions lib/app/modules/register/views/register_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -596,10 +596,7 @@ class RegisterView extends BaseView<RegisterController> {
),
recognizer: TapGestureRecognizer()
..onTap = () {
int index = _registerController.selectedPage.value + 1;
_registerController.pageController.animateToPage(index,
duration: const Duration(milliseconds: 500),
curve: Curves.ease);
_registerController.onSkipTap();
},
),
],
Expand Down

0 comments on commit 858e001

Please sign in to comment.