mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-22 15:09:22 +01:00
Refactoring: improve naming
This commit is contained in:
parent
bb5440a7d6
commit
145761495c
1 changed files with 6 additions and 6 deletions
|
@ -262,12 +262,12 @@ class _DynamicAlbumBrowserState extends State<DynamicAlbumBrowser>
|
||||||
tooltip: MaterialLocalizations.of(context).moreButtonTooltip,
|
tooltip: MaterialLocalizations.of(context).moreButtonTooltip,
|
||||||
itemBuilder: (context) => [
|
itemBuilder: (context) => [
|
||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
value: _SelectionAppBarOption.delete,
|
value: _SelectionMenuOption.delete,
|
||||||
child: Text(L10n.global().deleteTooltip),
|
child: Text(L10n.global().deleteTooltip),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
onSelected: (option) {
|
onSelected: (option) {
|
||||||
if (option == _SelectionAppBarOption.delete) {
|
if (option == _SelectionMenuOption.delete) {
|
||||||
_onSelectionAppBarDeletePressed();
|
_onSelectionAppBarDeletePressed();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -551,6 +551,10 @@ class _DynamicAlbumBrowserState extends State<DynamicAlbumBrowser>
|
||||||
static const _menuValueConvertBasic = 0;
|
static const _menuValueConvertBasic = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum _SelectionMenuOption {
|
||||||
|
delete,
|
||||||
|
}
|
||||||
|
|
||||||
abstract class _ListItem implements SelectableItem {
|
abstract class _ListItem implements SelectableItem {
|
||||||
_ListItem({
|
_ListItem({
|
||||||
required this.index,
|
required this.index,
|
||||||
|
@ -641,7 +645,3 @@ class _VideoListItem extends _FileListItem {
|
||||||
final Account account;
|
final Account account;
|
||||||
final String previewUrl;
|
final String previewUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum _SelectionAppBarOption {
|
|
||||||
delete,
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue