like_button
like_button copied to clipboard
Enlarge clickable zone
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.
https://github.com/fluttercandies/extra_hittest_area this is my other package, maybe it will help
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, ), ), ),
1.add key LikeButton 2.put LikeButton into a bigger container 3.when a bigger container ontap, call key.ontap