From 41ab9cf3600e9f1586395aea6635500686f715d2 Mon Sep 17 00:00:00 2001 From: kfj001 Date: Wed, 29 Apr 2026 06:33:24 +0000 Subject: [PATCH] minor asthetic improvements Co-authored-by: Copilot --- lib/main.dart | 62 ++++++++++++++++++++++++++++++++++----------------- 1 file changed, 41 insertions(+), 21 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index d833a5c..85cdbde 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -107,28 +107,48 @@ class _MainPageState extends State { ), Expanded( flex: 1, - child: Container( - width: double.infinity, - padding: const EdgeInsets.symmetric(horizontal: 16), - color: Colors.black87, - child: Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - ElevatedButton( - onPressed: _audio.isPlaying ? null : _play, - child: const Text('▶️'), + child: Padding( + padding: const EdgeInsets.fromLTRB(12, 0, 12, 12), + child: Container( + width: double.infinity, + padding: const EdgeInsets.symmetric(horizontal: 16), + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(20), + gradient: LinearGradient( + begin: Alignment.topLeft, + end: Alignment.bottomRight, + colors: [ + Colors.lightBlue.shade50, + Colors.lightBlue.shade100, + ], ), - const SizedBox(width: 12), - ElevatedButton( - onPressed: _audio.isPlaying ? _stop : null, - child: const Text('⏹️'), - ), - const SizedBox(width: 16), - Text( - _audio.isPlaying ? 'Playing' : 'Stopped', - style: const TextStyle(color: Colors.white), - ), - ], + boxShadow: const [ + BoxShadow( + color: Color(0x22000000), + blurRadius: 14, + offset: Offset(0, 6), + ), + ], + ), + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + ElevatedButton( + onPressed: _audio.isPlaying ? null : _play, + child: const Text('▶️'), + ), + const SizedBox(width: 12), + ElevatedButton( + onPressed: _audio.isPlaying ? _stop : null, + child: const Text('⏹️'), + ), + const SizedBox(width: 16), + Text( + _audio.isPlaying ? 'Playing' : 'Stopped', + style: const TextStyle(color: Colors.black87), + ), + ], + ), ), ), ),