Skip to content

Commit

Permalink
Updated with suggested change
Browse files Browse the repository at this point in the history
  • Loading branch information
Naveenchand06 committed Oct 10, 2023
1 parent 402a3f7 commit 99a59fa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/ui/viewer/file/file_app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@ class FileAppBarState extends State<FileAppBar> {
}
// only show fav option for files owned by the user
if (isOwnedByUser && !isFileHidden && isFileUploaded) {
actions.add(IconButton(icon: FavoriteWidget(widget.file), onPressed: null));
actions.add(
Padding(
padding: const EdgeInsets.symmetric(vertical: 6, horizontal: 7.5),
child: FavoriteWidget(widget.file),
),
);
}
if (!isFileUploaded) {
actions.add(
Expand Down

0 comments on commit 99a59fa

Please sign in to comment.