Fix: Hide overflow menu icon when empty (#588)

This commit is contained in:
Neeraj Gupta 2022-10-20 16:22:51 +05:30 committed by GitHub
parent 4921c3e013
commit b2ba07cffb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -255,7 +255,7 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
),
);
}
if (items.isNotEmpty) {
actions.add(
PopupMenuButton(
itemBuilder: (context) {
@ -282,6 +282,7 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
},
),
);
}
return actions;
}