like_button icon indicating copy to clipboard operation
like_button copied to clipboard

Enlarge clickable zone

Open OLIVIER-MULLER opened this issue 1 year ago • 3 comments

Thanks for your package... Beautiful.

Is there something to enlarge clickable zone ? Or a method to implement a larger zone properly ?

Lot of app enlarge clickable zone because like buttons are above another clickable zones (Cards, pictures...). The goal is to avoid clicking on the photo.

zone

OLIVIER-MULLER avatar Jul 29 '22 09:07 OLIVIER-MULLER

https://github.com/fluttercandies/extra_hittest_area this is my other package, maybe it will help

zmtzawqlp avatar Jul 30 '22 02:07 zmtzawqlp

Thanks. I've used a bigger and transparent CircleAvatar.

CircleAvatar( backgroundColor: ColorsClass.blackColor.withOpacity(0), radius: 45, child: LikeButton( mainAxisAlignment: MainAxisAlignment.end, crossAxisAlignment: CrossAxisAlignment.start, padding: const EdgeInsets.all(10), likeCountPadding: EdgeInsets.zero, onTap: onLikeButtonTapped, size: 20, circleColor: CircleColor( start: ColorsClass.customGreen.shade200, end: ColorsClass.customGreen, ), circleSize: 50, bubblesColor: BubblesColor( dotPrimaryColor: ColorsClass.customGreen.shade200, dotSecondaryColor: ColorsClass.customGreen, ), ), ),

OLIVIER-MULLER avatar Aug 03 '22 10:08 OLIVIER-MULLER

1.add key LikeButton 2.put LikeButton into a bigger container 3.when a bigger container ontap, call key.ontap

zmtzawqlp avatar Aug 05 '22 03:08 zmtzawqlp