Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to the speech functionality and refactoring some UI components. The most important changes include adding a new speech modal, updating the audio player widget, and refactoring icon configurations.
Enhancements to Speech Functionality:
lib/features/speech/ui/widgets/speech_modal/speech_modal.dart
: Added a newSpeechModal
class to display a modal for speech functionalities, including transcription and language selection.lib/features/speech/ui/widgets/speech_modal/language_dropdown.dart
: Introduced aLanguageDropdown
widget for selecting the language in the speech modal.lib/features/speech/ui/widgets/speech_modal/transcribe_button.dart
: Added aTranscribeButton
widget to initiate transcription from the speech modal.lib/features/speech/ui/widgets/speech_modal/transcripts_list.dart
: Added aTranscriptsList
widget to display the list of transcriptions in the speech modal.lib/features/speech/ui/widgets/speech_modal/transcripts_list_item.dart
: Introduced aTranscriptListItem
widget to display individual transcription items.Updates to Audio Player Widget:
lib/features/speech/ui/widgets/audio_player.dart
: Removed the transcription-related logic and UI elements from theAudioPlayerWidget
class, simplifying the widget. [1] [2] [3] [4]Refactoring Icon Configurations:
lib/features/calendar/ui/pages/day_view_page.dart
: Refactored icon configurations by replacingleftIcon
andrightIcon
withleftIconConfig
andrightIconConfig
respectively, and removed redundant padding properties.Additional Changes:
lib/features/journal/state/entry_controller.dart
: Added a new methodsetLanguage
to update the language of a journal entry.lib/features/journal/ui/widgets/entry_details/entry_detail_header.dart
: AddedSpeechModalListTile
to theExtendedHeaderActions
class.lib/features/speech/state/recorder_cubit.dart
: UpdatedAudioRecorderCubit
to usestate.copyWith
instead ofinitialState.copyWith
.These changes enhance the speech functionalities, simplify the audio player widget, and improve the overall user experience.