Replace close button with a simple 'x' text for improved clarity and simplicity

This commit is contained in:
Leon Bösche
2026-01-17 03:31:13 +01:00
parent 0d88d8e58e
commit 0c1e470779

View File

@@ -294,16 +294,19 @@ class _AudioPlayerBarState extends State<AudioPlayerBar>
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
), ),
), ),
// Close button (smaller) // Close button (simple small x)
if (widget.onClose != null) if (widget.onClose != null)
Padding( Padding(
padding: const EdgeInsets.only(left: 8.0), padding: const EdgeInsets.only(left: 8.0),
child: ModernGlassButton( child: GestureDetector(
onPressed: widget.onClose!, onTap: widget.onClose!,
child: const Icon( child: const Text(
Icons.close, '×',
style: TextStyle(
color: AppTheme.primaryText, color: AppTheme.primaryText,
size: 18, fontSize: 20,
fontWeight: FontWeight.bold,
),
), ),
), ),
), ),