Add the ability to delete media items

This commit is contained in:
Micah Morrison
2026-02-01 23:03:04 -05:00
parent 58adb5edad
commit 41bf2f4ede
23 changed files with 227 additions and 37 deletions
+5
View File
@@ -45,6 +45,9 @@ class FocusableListTile extends StatefulWidget {
/// If true, consumes the first select key event to avoid accidental activation.
final bool suppressInitialSelect;
/// An optional color to display behind the menu item when being hovered.
final Color? hoverColor;
const FocusableListTile({
super.key,
this.title,
@@ -60,6 +63,7 @@ class FocusableListTile extends StatefulWidget {
this.autofocus = false,
this.contentPadding,
this.suppressInitialSelect = false,
this.hoverColor,
});
@override
@@ -84,6 +88,7 @@ class _FocusableListTileState extends State<FocusableListTile> {
contentPadding: widget.contentPadding,
focusNode: widget.suppressInitialSelect ? null : widget.focusNode,
autofocus: widget.suppressInitialSelect ? false : widget.autofocus,
hoverColor: widget.hoverColor,
);
if (!widget.suppressInitialSelect) {