Replace close button with a simple 'x' text for improved clarity and simplicity
This commit is contained in:
@@ -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,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user