Move padding within to increase tap-able area

This commit is contained in:
vishnukvmd 2024-04-24 11:00:18 +05:30
parent 50b6d95ec2
commit 0b212bf7a6
2 changed files with 2 additions and 6 deletions

View file

@ -144,12 +144,7 @@ class FileAppBarState extends State<FileAppBar> {
if ((isOwnedByUser || flagService.internalUser) &&
!isFileHidden &&
isFileUploaded) {
_actions.add(
Padding(
padding: const EdgeInsets.all(8),
child: FavoriteWidget(widget.file),
),
);
_actions.add(FavoriteWidget(widget.file));
}
if (!isFileUploaded) {
_actions.add(

View file

@ -50,6 +50,7 @@ class _FavoriteWidgetState extends State<FavoriteWidget> {
: LikeButton(
size: 24,
isLiked: isLiked,
padding: const EdgeInsets.all(2),
onTap: (oldValue) async {
if (widget.file.uploadedFileID == null ||
widget.file.ownerID !=