diff --git a/lib/ui/fading_app_bar.dart b/lib/ui/fading_app_bar.dart index 6b129e61a..382922572 100644 --- a/lib/ui/fading_app_bar.dart +++ b/lib/ui/fading_app_bar.dart @@ -12,7 +12,6 @@ import 'package:photos/models/file.dart'; import 'package:photos/services/favorites_service.dart'; import 'package:photos/services/local_sync_service.dart'; import 'package:photos/ui/custom_app_bar.dart'; -import 'package:photos/ui/set_wallpaper_dialog.dart'; import 'package:photos/utils/date_time_util.dart'; import 'package:photos/utils/delete_file_util.dart'; import 'package:photos/utils/dialog_util.dart'; @@ -120,22 +119,6 @@ class FadingAppBarState extends State { ), ), ); - if (Platform.isAndroid) { - items.add( - PopupMenuItem( - value: 3, - child: Row( - children: [ - Icon(Icons.wallpaper_outlined), - Padding( - padding: EdgeInsets.all(8), - ), - Text("set wallpaper"), - ], - ), - ), - ); - } return items; }, onSelected: (value) { @@ -143,8 +126,6 @@ class FadingAppBarState extends State { _download(widget.file); } else if (value == 2) { _showDeleteSheet(widget.file); - } else if (value == 3) { - _setWallpaper(widget.file); } }, )); @@ -220,7 +201,7 @@ class FadingAppBarState extends State { } void _showDeleteSheet(File file) { - final actions = List(); + final List actions = []; if (file.uploadedFileID == null) { actions.add(CupertinoActionSheetAction( child: Text("everywhere"), @@ -278,14 +259,4 @@ class FadingAppBarState extends State { await dialog.hide(); showToast("file saved to gallery"); } - - Future _setWallpaper(File file) async { - showDialog( - context: context, - builder: (BuildContext context) { - return SetWallpaperDialog(file); - }, - barrierColor: Colors.black87, - ); - } }