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,
),
),
// Close button (smaller)
// Close button (simple small x)
if (widget.onClose != null)
Padding(
padding: const EdgeInsets.only(left: 8.0),
child: ModernGlassButton(
onPressed: widget.onClose!,
child: const Icon(
Icons.close,
color: AppTheme.primaryText,
size: 18,
child: GestureDetector(
onTap: widget.onClose!,
child: const Text(
'×',
style: TextStyle(
color: AppTheme.primaryText,
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
),
),