Skip to content

Commit

Permalink
Feat/register upload style (#6)
Browse files Browse the repository at this point in the history
* style-change

* radio set to center

---------

Co-authored-by: huxiaoyan <[email protected]>
  • Loading branch information
Ge-limin and huxiaoyan authored Mar 28, 2024
1 parent d6cb4db commit 5816305
Showing 1 changed file with 47 additions and 28 deletions.
75 changes: 47 additions & 28 deletions lib/pages/recording_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -122,26 +122,39 @@ class _RecordingPageState extends State<RecordingPage> {
// showInsights = true;
// });
},
child: Column(mainAxisSize: MainAxisSize.min, children: [
Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Padding(
padding: const EdgeInsets.all(16.0),
// Example: 16 pixels on all sides
child: Column(
children: [
child: Row(
mainAxisSize: MainAxisSize.max,
children: [
Expanded(
child: Padding(
padding: EdgeInsets.all(16.0),
child: Container(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.stretch,
children:[
Text("You said: ${speakerTurnStart['original_sentence']}"),
Text("Improved Sentence: ${speakerTurnStart['improved_sentence']}"),
CustomAudioPlayer(
source: '$insightsDirPath/${speakerTurnStart['file_name']}',
onDelete: () {},
)
// Text(previousRecording.comment),
])),
])
])),
Container(
padding: EdgeInsets.only(top: 10.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children:[
CustomAudioPlayer(
source: '$insightsDirPath/${speakerTurnStart['file_name']}',
onDelete: () {},
)
]
),
)
]
)
),
),
),
]
)
),
),
);
// insights.add(Text('Speaker Turn: $speakerTurn'));
Expand All @@ -167,16 +180,22 @@ class _RecordingPageState extends State<RecordingPage> {
),
),
),
CustomAudioPlayer(
source: audioRecord?.path ?? 'Audio Not Found',
onDelete: () {
// TODO modal confirmation on Delete
AudioRecordingProvider().deleteRecording(showInsightsRecordId);
setState(() {
refreshRecordings = true;
showInsights = false;
});
},
Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.center,
children:[
CustomAudioPlayer(
source: audioRecord?.path ?? 'Audio Not Found',
onDelete: () {
// TODO modal confirmation on Delete
AudioRecordingProvider().deleteRecording(showInsightsRecordId);
setState(() {
refreshRecordings = true;
showInsights = false;
});
},
),
]
),
Column(children: [
FutureBuilder<List<Widget>>(
Expand Down

0 comments on commit 5816305

Please sign in to comment.