Revert "Move padding within to increase tap-able area"

This reverts commit 0b212bf7a6.
This commit is contained in:
vishnukvmd 2024-05-13 17:43:09 +05:30
parent 50613b8c57
commit 65574a0d81
2 changed files with 6 additions and 3 deletions

View file

@ -131,9 +131,13 @@ class FileAppBarState extends State<FileAppBar> {
),
);
}
// only show fav option for files owned by the user
if (!isFileHidden && isFileUploaded) {
_actions.add(FavoriteWidget(widget.file));
_actions.add(
Padding(
padding: const EdgeInsets.all(8),
child: FavoriteWidget(widget.file),
),
);
}
if (!isFileUploaded) {
_actions.add(

View file

@ -50,7 +50,6 @@ 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 !=