minor asthetic improvements

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-29 06:33:24 +00:00
co-authored by Copilot
parent 5363665fd8
commit 41ab9cf360
+41 -21
View File
@@ -107,28 +107,48 @@ class _MainPageState extends State<MainPage> {
), ),
Expanded( Expanded(
flex: 1, flex: 1,
child: Container( child: Padding(
width: double.infinity, padding: const EdgeInsets.fromLTRB(12, 0, 12, 12),
padding: const EdgeInsets.symmetric(horizontal: 16), child: Container(
color: Colors.black87, width: double.infinity,
child: Row( padding: const EdgeInsets.symmetric(horizontal: 16),
mainAxisAlignment: MainAxisAlignment.center, decoration: BoxDecoration(
children: [ borderRadius: BorderRadius.circular(20),
ElevatedButton( gradient: LinearGradient(
onPressed: _audio.isPlaying ? null : _play, begin: Alignment.topLeft,
child: const Text('▶️'), end: Alignment.bottomRight,
colors: [
Colors.lightBlue.shade50,
Colors.lightBlue.shade100,
],
), ),
const SizedBox(width: 12), boxShadow: const [
ElevatedButton( BoxShadow(
onPressed: _audio.isPlaying ? _stop : null, color: Color(0x22000000),
child: const Text('⏹️'), blurRadius: 14,
), offset: Offset(0, 6),
const SizedBox(width: 16), ),
Text( ],
_audio.isPlaying ? 'Playing' : 'Stopped', ),
style: const TextStyle(color: Colors.white), 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),
),
],
),
), ),
), ),
), ),