minor: rename userId -> userID
Signed-off-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
This commit is contained in:
parent
804cac9669
commit
9c6d7b2ae2
1 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue