Skip to content

Commit

Permalink
fixup! LA-1267 Added handling for incoming phone calls while recording
Browse files Browse the repository at this point in the history
  • Loading branch information
KhaledNjim committed Nov 10, 2024
1 parent 112e1e2 commit d9c6e8b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 15 deletions.
2 changes: 0 additions & 2 deletions lib/presentation/redux/reducers/audio_recorder_reducer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ AudioRecorderState _startRecording(
return AudioRecorderState(Right(AudioRecorderStarted()));
}



AudioRecorderState _pauseRecording(
AudioRecorderState state, PauseRecording action) {
return AudioRecorderState(Right(AudioRecorderPaused()));
Expand Down
2 changes: 0 additions & 2 deletions lib/presentation/redux/states/audio_recorder_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ import 'package:dartz/dartz.dart';
import 'package:equatable/equatable.dart';
import 'package:linshare_flutter_app/presentation/redux/states/linshare_state.dart';



class AudioRecorderState extends LinShareState with EquatableMixin {
AudioRecorderState(Either<Failure, Success> viewState) : super(viewState);

Expand Down
4 changes: 2 additions & 2 deletions lib/presentation/view/dialog/open_settings_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import 'package:linshare_flutter_app/presentation/util/router/app_navigation.dar
import 'package:permission_handler/permission_handler.dart';

class OpenSettingsDialog extends StatelessWidget {
VoidCallback? settingsButtonCallback;
VoidCallback? cancelButtonCallback;
final VoidCallback? settingsButtonCallback;
final VoidCallback? cancelButtonCallback;
final AppNavigation _appNavigation;
OpenSettingsDialog(this._appNavigation,
{this.settingsButtonCallback, this.cancelButtonCallback});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ class SimpleBottomSheetHeaderBuilder {
title: Transform(
transform: _transformPadding ?? Matrix4.translationValues(12, 5, 0.0),
child: Center(
child:Text(
_label ?? '',
style: _textStyle ?? TextStyle(
child: Text(
_label ?? '',
style: _textStyle ??
TextStyle(
fontSize: 20.0,
color: AppColor.uploadFileFileNameTextColor),
),
Expand Down
4 changes: 2 additions & 2 deletions lib/presentation/widget/myspace/my_space_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -757,8 +757,8 @@ class MySpaceViewModel extends BaseViewModel {
store.dispatch(
CloseCameraPicker());
result.fold(
(failure) => store.dispatch(UploadFileAction(Left(failure))),
(success) => store.dispatch(_pickFileSuccessAction(success)));
(failure) => store.dispatch(UploadFileAction(Left(failure))),
(success) => store.dispatch(_pickFileSuccessAction(success)));
});
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ class _SharedSpaceDocumentWidgetState extends State<SharedSpaceDocumentWidget> {
.onActionClick((_) => sharedSpaceDocumentViewModel.openCameraPicker(context))
.build();
}
Widget recordAudioAction() {
Widget recordAudioAction() {
return SimpleContextMenuActionBuilder(
Key('record_audio_context_menu_action'),
SvgPicture.asset(imagePath.icMicrophone,
Expand All @@ -897,8 +897,8 @@ Widget recordAudioAction() {
fit: BoxFit.fill,
color: AppColor.primaryColor),
AppLocalizations.of(context).audio_recording)
.onActionClick((_) => sharedSpaceDocumentViewModel.openAudioRecorder())
.build();
.onActionClick((_) => sharedSpaceDocumentViewModel.openAudioRecorder())
.build();
}


Expand Down
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ dependencies:

phone_state: 1.0.2


async: 2.8.2

firebase_core: 1.19.1
Expand Down

0 comments on commit d9c6e8b

Please sign in to comment.