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,
|
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,
|
'×',
|
||||||
color: AppTheme.primaryText,
|
style: TextStyle(
|
||||||
size: 18,
|
color: AppTheme.primaryText,
|
||||||
|
fontSize: 20,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user