mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-23 22:12:34 +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,
|
||||
cancelLabel: L10n.of(context).cancel,
|
||||
message: L10n.of(context).clearArchive,
|
||||
|
||||
) !=
|
||||
OkCancelResult.ok) {
|
||||
return;
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user