gskinnerTeam / flutter-defer-pointer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

khaven opened this issue · comments

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

@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,
              ),
            ),
          ),
        ),
      ),
    ),
  ),
)