mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 06:52:35 +01:00
fix: Formatting
This commit is contained in:
parent
f1d0dba544
commit
00e43c666e
@ -28,7 +28,6 @@ class ArchiveController extends State<Archive> {
|
|||||||
okLabel: L10n.of(context).yes,
|
okLabel: L10n.of(context).yes,
|
||||||
cancelLabel: L10n.of(context).cancel,
|
cancelLabel: L10n.of(context).cancel,
|
||||||
message: L10n.of(context).clearArchive,
|
message: L10n.of(context).clearArchive,
|
||||||
|
|
||||||
) !=
|
) !=
|
||||||
OkCancelResult.ok) {
|
OkCancelResult.ok) {
|
||||||
return;
|
return;
|
||||||
|
@ -35,7 +35,6 @@ class ChatDetailsController extends State<ChatDetails> {
|
|||||||
title: L10n.of(context).changeTheNameOfTheGroup,
|
title: L10n.of(context).changeTheNameOfTheGroup,
|
||||||
okLabel: L10n.of(context).ok,
|
okLabel: L10n.of(context).ok,
|
||||||
cancelLabel: L10n.of(context).cancel,
|
cancelLabel: L10n.of(context).cancel,
|
||||||
|
|
||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(
|
DialogTextField(
|
||||||
initialText: room.getLocalizedDisplayname(
|
initialText: room.getLocalizedDisplayname(
|
||||||
@ -160,7 +159,6 @@ class ChatDetailsController extends State<ChatDetails> {
|
|||||||
title: L10n.of(context).setInvitationLink,
|
title: L10n.of(context).setInvitationLink,
|
||||||
okLabel: L10n.of(context).ok,
|
okLabel: L10n.of(context).ok,
|
||||||
cancelLabel: L10n.of(context).cancel,
|
cancelLabel: L10n.of(context).cancel,
|
||||||
|
|
||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(
|
DialogTextField(
|
||||||
prefixText: '#',
|
prefixText: '#',
|
||||||
@ -185,7 +183,6 @@ class ChatDetailsController extends State<ChatDetails> {
|
|||||||
title: L10n.of(context).setGroupDescription,
|
title: L10n.of(context).setGroupDescription,
|
||||||
okLabel: L10n.of(context).ok,
|
okLabel: L10n.of(context).ok,
|
||||||
cancelLabel: L10n.of(context).cancel,
|
cancelLabel: L10n.of(context).cancel,
|
||||||
|
|
||||||
textFields: [
|
textFields: [
|
||||||
DialogTextField(
|
DialogTextField(
|
||||||
hintText: L10n.of(context).setGroupDescription,
|
hintText: L10n.of(context).setGroupDescription,
|
||||||
|
@ -27,7 +27,6 @@ class _EncryptionButtonState extends State<EncryptionButton> {
|
|||||||
if (widget.room.joinRules == JoinRules.public) {
|
if (widget.room.joinRules == JoinRules.public) {
|
||||||
await showOkAlertDialog(
|
await showOkAlertDialog(
|
||||||
context: context,
|
context: context,
|
||||||
|
|
||||||
okLabel: L10n.of(context).ok,
|
okLabel: L10n.of(context).ok,
|
||||||
message: L10n.of(context).noEncryptionForPublicRooms,
|
message: L10n.of(context).noEncryptionForPublicRooms,
|
||||||
);
|
);
|
||||||
@ -35,7 +34,6 @@ class _EncryptionButtonState extends State<EncryptionButton> {
|
|||||||
}
|
}
|
||||||
if (await showOkCancelAlertDialog(
|
if (await showOkCancelAlertDialog(
|
||||||
context: context,
|
context: context,
|
||||||
|
|
||||||
title: L10n.of(context).enableEncryption,
|
title: L10n.of(context).enableEncryption,
|
||||||
message: widget.room.client.encryptionEnabled
|
message: widget.room.client.encryptionEnabled
|
||||||
? L10n.of(context).enableEncryptionWarning
|
? L10n.of(context).enableEncryptionWarning
|
||||||
|
@ -1,14 +1,9 @@
|
|||||||
import 'package:fluffychat/pages/homeserver_picker.dart';
|
import 'package:fluffychat/pages/homeserver_picker.dart';
|
||||||
import 'package:fluffychat/main.dart';
|
import 'package:fluffychat/main.dart';
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
testWidgets('Test if the widget can be created', (WidgetTester tester) async {
|
testWidgets('Test if the widget can be created', (WidgetTester tester) async {
|
||||||
await tester.pumpWidget(FluffyChatApp(testWidget: HomeserverPicker()));
|
await tester.pumpWidget(FluffyChatApp(testWidget: HomeserverPicker()));
|
||||||
|
|
||||||
await tester.tap(find.byType(TextField));
|
|
||||||
await tester.tap(find.byType(ElevatedButton));
|
|
||||||
await tester.pumpAndSettle();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user