minor: rename userId -> userID

Signed-off-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
This commit is contained in:
Neeraj Gupta 2021-09-15 12:28:05 +05:30
parent 804cac9669
commit 9c6d7b2ae2
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -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<FadingAppBar> {
AppBar _buildAppBar() {
final List<Widget> 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<FadingAppBar> {
}
// 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,