diff --git a/open_earable/lib/controls_tab/views/audio_player.dart b/open_earable/lib/controls_tab/views/audio_player.dart index cc295fe..72385c5 100644 --- a/open_earable/lib/controls_tab/views/audio_player.dart +++ b/open_earable/lib/controls_tab/views/audio_player.dart @@ -222,7 +222,7 @@ class _AudioPlayerCardState extends State { Widget _getAudioPlayerRadio(int index) { return SizedBox( - height: 37, + height: 38, width: 44, child: Platform.isIOS ? CupertinoRadio( @@ -276,7 +276,7 @@ class _AudioPlayerCardState extends State { _getAudioPlayerRadio(0), Expanded( child: SizedBox( - height: 37.0, + height: 38.0, child: _fileNameTextField( _filenameTextController, TextInputType.text, null, null)), ), @@ -321,7 +321,7 @@ class _AudioPlayerCardState extends State { style: TextStyle(color: _connected ? Colors.black : Colors.grey), decoration: InputDecoration( labelText: placeholder, - contentPadding: EdgeInsets.all(8), + contentPadding: EdgeInsets.fromLTRB(8, 0, 0, 0), border: OutlineInputBorder(), floatingLabelBehavior: FloatingLabelBehavior.never, labelStyle: TextStyle(color: _connected ? Colors.black : Colors.grey), @@ -348,23 +348,31 @@ class _AudioPlayerCardState extends State { Row( children: [ _getAudioPlayerRadio(1), - Expanded( - child: SizedBox( - height: 37.0, - child: DynamicValuePicker( - context, - OpenEarableSettings().jingleMap.keys.toList(), - OpenEarableSettings().selectedJingle, - (newValue) { - setState(() { - OpenEarableSettings().selectedJingle = newValue; - }); - }, - (_) => null, - _connected, + Container( + decoration: BoxDecoration( + color: Provider.of(context).connected + ? Colors.white + : Colors.grey[200], + borderRadius: BorderRadius.circular(4.0), ), - ), - ), + child: SizedBox( + height: 40, + child: Container( + padding: EdgeInsets.fromLTRB(8, 0, 0, 0), + alignment: Alignment.centerRight, + child: DynamicValuePicker( + context, + OpenEarableSettings().jingleMap.keys.toList(), + OpenEarableSettings().selectedJingle, + (newValue) { + setState(() { + OpenEarableSettings().selectedJingle = newValue; + }); + }, + (_) => null, + _connected, + ), + ))), ], ) ]); @@ -384,7 +392,7 @@ class _AudioPlayerCardState extends State { children: [ _getAudioPlayerRadio(2), SizedBox( - height: 37.0, + height: 38.0, width: 75, child: Padding( padding: const EdgeInsets.symmetric(horizontal: 0), @@ -402,10 +410,12 @@ class _AudioPlayerCardState extends State { ), Spacer(), SizedBox( - height: 37.0, + height: 38.0, width: 52, - child: _fileNameTextField(_frequencyVolumeTextController, - TextInputType.number, "50", 3)), + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 0), + child: _fileNameTextField(_frequencyVolumeTextController, + TextInputType.number, "50", null))), Padding( padding: const EdgeInsets.symmetric(horizontal: 5), child: Text( @@ -418,7 +428,7 @@ class _AudioPlayerCardState extends State { ), Spacer(), SizedBox( - height: 37.0, + height: 38.0, width: 107, child: DynamicValuePicker( context,