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

Scrolling is not working When deferpointer is used in any type of scrollview #10

Open
khaven opened this issue Feb 17, 2024 · 1 comment

Comments

@khaven
Copy link

khaven commented Feb 17, 2024

Hi,
I just want to let you know that scrolling is not working by touching on a widget that is using a deferpointer.

@AlaaEldeenYsr
Copy link

AlaaEldeenYsr commented Feb 19, 2024

@khaven Wrap your button with transparent_pointer

Positioned(
  top: -8.h,
  right: -2.w,
  child: OverflowPadding(
    padding: EdgeInsets.all(-AppSpaces.borderRadius16),
    child: DeferPointer(
      child: TransparentPointer(
        child: InkWell(
          onTap: () {
            final controller = context.read<ProductCardActionsCubit>();

            controller.removeItemFromCart(cartItemId: data.id);
          },
          child: Container(
            height: 16.h,
            width: 16.h,
            margin: EdgeInsets.all(AppSpaces.borderRadius16),
            decoration: BoxDecoration(
              border: Border.all(color: AppColors.error),
              borderRadius: BorderRadius.circular(AppSpaces.borderRadius24),
            ),
            child: Center(
              child: AppIcon(
                icon: Assets.icons.close.path,
                size: AppSpaces.borderRadius8,
                color: Theme.of(context).colorScheme.error,
              ),
            ),
          ),
        ),
      ),
    ),
  ),
)

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

2 participants