diff --git a/lib/pages/archive.dart b/lib/pages/archive.dart index 1c44f403..077b1c17 100644 --- a/lib/pages/archive.dart +++ b/lib/pages/archive.dart @@ -28,7 +28,6 @@ class ArchiveController extends State { okLabel: L10n.of(context).yes, cancelLabel: L10n.of(context).cancel, message: L10n.of(context).clearArchive, - ) != OkCancelResult.ok) { return; diff --git a/lib/pages/chat_details.dart b/lib/pages/chat_details.dart index 9ae86a96..cbff8e28 100644 --- a/lib/pages/chat_details.dart +++ b/lib/pages/chat_details.dart @@ -35,7 +35,6 @@ class ChatDetailsController extends State { title: L10n.of(context).changeTheNameOfTheGroup, okLabel: L10n.of(context).ok, cancelLabel: L10n.of(context).cancel, - textFields: [ DialogTextField( initialText: room.getLocalizedDisplayname( @@ -160,7 +159,6 @@ class ChatDetailsController extends State { title: L10n.of(context).setInvitationLink, okLabel: L10n.of(context).ok, cancelLabel: L10n.of(context).cancel, - textFields: [ DialogTextField( prefixText: '#', @@ -185,7 +183,6 @@ class ChatDetailsController extends State { title: L10n.of(context).setGroupDescription, okLabel: L10n.of(context).ok, cancelLabel: L10n.of(context).cancel, - textFields: [ DialogTextField( hintText: L10n.of(context).setGroupDescription, diff --git a/lib/widgets/encryption_button.dart b/lib/widgets/encryption_button.dart index f683ee84..f318cb2f 100644 --- a/lib/widgets/encryption_button.dart +++ b/lib/widgets/encryption_button.dart @@ -27,7 +27,6 @@ class _EncryptionButtonState extends State { if (widget.room.joinRules == JoinRules.public) { await showOkAlertDialog( context: context, - okLabel: L10n.of(context).ok, message: L10n.of(context).noEncryptionForPublicRooms, ); @@ -35,7 +34,6 @@ class _EncryptionButtonState extends State { } if (await showOkCancelAlertDialog( context: context, - title: L10n.of(context).enableEncryption, message: widget.room.client.encryptionEnabled ? L10n.of(context).enableEncryptionWarning diff --git a/test/homeserver_picker_test.dart b/test/homeserver_picker_test.dart index e3769ebf..f3d9b2e6 100644 --- a/test/homeserver_picker_test.dart +++ b/test/homeserver_picker_test.dart @@ -1,14 +1,9 @@ import 'package:fluffychat/pages/homeserver_picker.dart'; import 'package:fluffychat/main.dart'; -import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Test if the widget can be created', (WidgetTester tester) async { await tester.pumpWidget(FluffyChatApp(testWidget: HomeserverPicker())); - - await tester.tap(find.byType(TextField)); - await tester.tap(find.byType(ElevatedButton)); - await tester.pumpAndSettle(); }); }