|
|
|
@ -151,7 +151,6 @@ class ChatController extends State<ChatPageWithRoom> {
|
|
|
|
|
|
|
|
|
|
await showAdaptiveDialog(
|
|
|
|
|
context: context,
|
|
|
|
|
useRootNavigator: false,
|
|
|
|
|
builder: (c) => SendFileDialog(
|
|
|
|
|
files: matrixFiles,
|
|
|
|
|
room: room,
|
|
|
|
@ -452,7 +451,6 @@ class ChatController extends State<ChatPageWithRoom> {
|
|
|
|
|
final l10n = L10n.of(context)!;
|
|
|
|
|
final dialogResult = await showOkCancelAlertDialog(
|
|
|
|
|
context: context,
|
|
|
|
|
useRootNavigator: false,
|
|
|
|
|
title: l10n.commandInvalid,
|
|
|
|
|
message: l10n.commandMissing(commandMatch[0]!),
|
|
|
|
|
okLabel: l10n.sendAsText,
|
|
|
|
@ -492,7 +490,6 @@ class ChatController extends State<ChatPageWithRoom> {
|
|
|
|
|
if (result == null || result.files.isEmpty) return;
|
|
|
|
|
await showAdaptiveDialog(
|
|
|
|
|
context: context,
|
|
|
|
|
useRootNavigator: false,
|
|
|
|
|
builder: (c) => SendFileDialog(
|
|
|
|
|
files: result.files
|
|
|
|
|
.map(
|
|
|
|
@ -510,7 +507,6 @@ class ChatController extends State<ChatPageWithRoom> {
|
|
|
|
|
void sendImageFromClipBoard(Uint8List? image) async {
|
|
|
|
|
await showAdaptiveDialog(
|
|
|
|
|
context: context,
|
|
|
|
|
useRootNavigator: false,
|
|
|
|
|
builder: (c) => SendFileDialog(
|
|
|
|
|
files: [
|
|
|
|
|
MatrixFile(
|
|
|
|
@ -535,7 +531,6 @@ class ChatController extends State<ChatPageWithRoom> {
|
|
|
|
|
|
|
|
|
|
await showAdaptiveDialog(
|
|
|
|
|
context: context,
|
|
|
|
|
useRootNavigator: false,
|
|
|
|
|
builder: (c) => SendFileDialog(
|
|
|
|
|
files: result.files
|
|
|
|
|
.map(
|
|
|
|
@ -558,7 +553,6 @@ class ChatController extends State<ChatPageWithRoom> {
|
|
|
|
|
final bytes = await file.readAsBytes();
|
|
|
|
|
await showAdaptiveDialog(
|
|
|
|
|
context: context,
|
|
|
|
|
useRootNavigator: false,
|
|
|
|
|
builder: (c) => SendFileDialog(
|
|
|
|
|
files: [
|
|
|
|
|
MatrixImageFile(
|
|
|
|
@ -582,7 +576,6 @@ class ChatController extends State<ChatPageWithRoom> {
|
|
|
|
|
final bytes = await file.readAsBytes();
|
|
|
|
|
await showAdaptiveDialog(
|
|
|
|
|
context: context,
|
|
|
|
|
useRootNavigator: false,
|
|
|
|
|
builder: (c) => SendFileDialog(
|
|
|
|
|
files: [
|
|
|
|
|
MatrixVideoFile(
|
|
|
|
@ -631,7 +624,6 @@ class ChatController extends State<ChatPageWithRoom> {
|
|
|
|
|
if (await AudioRecorder().hasPermission() == false) return;
|
|
|
|
|
final result = await showDialog<RecordingResult>(
|
|
|
|
|
context: context,
|
|
|
|
|
useRootNavigator: false,
|
|
|
|
|
barrierDismissible: false,
|
|
|
|
|
builder: (c) => const RecordingDialog(),
|
|
|
|
|
);
|
|
|
|
@ -690,7 +682,6 @@ class ChatController extends State<ChatPageWithRoom> {
|
|
|
|
|
void sendLocationAction() async {
|
|
|
|
|
await showAdaptiveDialog(
|
|
|
|
|
context: context,
|
|
|
|
|
useRootNavigator: false,
|
|
|
|
|
builder: (c) => SendLocationDialog(room: room),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
@ -745,7 +736,6 @@ class ChatController extends State<ChatPageWithRoom> {
|
|
|
|
|
);
|
|
|
|
|
if (score == null) return;
|
|
|
|
|
final reason = await showTextInputDialog(
|
|
|
|
|
useRootNavigator: false,
|
|
|
|
|
context: context,
|
|
|
|
|
title: L10n.of(context)!.whyDoYouWantToReportThis,
|
|
|
|
|
okLabel: L10n.of(context)!.ok,
|
|
|
|
@ -1055,7 +1045,6 @@ class ChatController extends State<ChatPageWithRoom> {
|
|
|
|
|
void goToNewRoomAction() async {
|
|
|
|
|
if (OkCancelResult.ok !=
|
|
|
|
|
await showOkCancelAlertDialog(
|
|
|
|
|
useRootNavigator: false,
|
|
|
|
|
context: context,
|
|
|
|
|
title: L10n.of(context)!.goToTheNewRoom,
|
|
|
|
|
message: room
|
|
|
|
@ -1287,7 +1276,6 @@ class ChatController extends State<ChatPageWithRoom> {
|
|
|
|
|
context: context,
|
|
|
|
|
title: L10n.of(context)!.unavailable,
|
|
|
|
|
okLabel: L10n.of(context)!.next,
|
|
|
|
|
useRootNavigator: false,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|