diff --git a/lib/ui/fading_app_bar.dart b/lib/ui/fading_app_bar.dart index 88c1d7e6c..4e3840fd2 100644 --- a/lib/ui/fading_app_bar.dart +++ b/lib/ui/fading_app_bar.dart @@ -24,12 +24,12 @@ class FadingAppBar extends StatefulWidget implements PreferredSizeWidget { final File file; final Function(File) onFileDeleted; final double height; - final int userId; + final int userID; FadingAppBar( this.file, this.onFileDeleted, - this.userId, + this.userID, this.height, { Key key, }) : super(key: key); @@ -86,7 +86,7 @@ class FadingAppBarState extends State { AppBar _buildAppBar() { final List actions = []; // only show fav option for files owned by the user - if (widget.file.ownerID == null || widget.file.ownerID == widget.userId) { + if (widget.file.ownerID == null || widget.file.ownerID == widget.userID) { actions.add(_getFavoriteButton()); } actions.add(PopupMenuButton( @@ -112,7 +112,7 @@ class FadingAppBarState extends State { } // only show delete option for files owned by the user if (widget.file.ownerID == null || - widget.file.ownerID == widget.userId) { + widget.file.ownerID == widget.userID) { items.add( PopupMenuItem( value: 2,