fix: Formatting

This commit is contained in:
Christian Pauly 2021-05-23 14:24:21 +02:00
parent f1d0dba544
commit 00e43c666e
4 changed files with 0 additions and 11 deletions

View File

@ -28,7 +28,6 @@ class ArchiveController extends State<Archive> {
okLabel: L10n.of(context).yes,
cancelLabel: L10n.of(context).cancel,
message: L10n.of(context).clearArchive,
) !=
OkCancelResult.ok) {
return;

View File

@ -35,7 +35,6 @@ class ChatDetailsController extends State<ChatDetails> {
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<ChatDetails> {
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<ChatDetails> {
title: L10n.of(context).setGroupDescription,
okLabel: L10n.of(context).ok,
cancelLabel: L10n.of(context).cancel,
textFields: [
DialogTextField(
hintText: L10n.of(context).setGroupDescription,

View File

@ -27,7 +27,6 @@ class _EncryptionButtonState extends State<EncryptionButton> {
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<EncryptionButton> {
}
if (await showOkCancelAlertDialog(
context: context,
title: L10n.of(context).enableEncryption,
message: widget.room.client.encryptionEnabled
? L10n.of(context).enableEncryptionWarning

View File

@ -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();
});
}