Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add onTap event #24

Open
astheras opened this issue Nov 28, 2022 · 0 comments
Open

add onTap event #24

astheras opened this issue Nov 28, 2022 · 0 comments

Comments

@astheras
Copy link

astheras commented Nov 28, 2022

for example

SubstringHighlight(
    text: 'txt_agreement'.tr,
    terms: [
      'txt_terms_conditions'.tr,
      'txt_privacy_policy'.tr,
    ],
    textAlign: TextAlign.center,
    textStyle: Get.textTheme.headline2!.copyWith(
      fontSize: 12,
      fontWeight: FontWeight.w400,
      letterSpacing: 0,
    ),
    textStyleHighlight: Get.textTheme.bodyText2!.copyWith(
      fontSize: 12,
      fontWeight: FontWeight.w400,
      letterSpacing: 0,
      color: AppColors.accentPrimary,
   ),
    onTap :  (String termName){
       if (termName== 'txt_terms_conditions'.tr, ) ....
   }
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant