Skip to content

Commit

Permalink
fixup! fixup! feat: new encrypted message design
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian KOUNE committed Oct 3, 2023
1 parent 33ff801 commit 52fee27
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
17 changes: 11 additions & 6 deletions lib/pages/chat/events/encrypted_content.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,17 @@ class EncryptedContent extends StatelessWidget with EncryptedMixin {
),
),
const SizedBox(width: EncryptedContentStyle.leadingAndTextGap),
Text(
maxLines: 2,
L10n.of(context)!.thisMessageHasBeenEncrypted,
style: Theme.of(context).textTheme.bodyMedium!.copyWith(
color: Theme.of(context).colorScheme.onSurface,
),
Container(
constraints: const BoxConstraints(
maxWidth: EncryptedContentStyle.textMaxWidth,
),
child: Text(
maxLines: 2,
L10n.of(context)!.thisMessageHasBeenEncrypted,
style: Theme.of(context).textTheme.bodyMedium!.copyWith(
color: Theme.of(context).colorScheme.onSurface,
),
),
),
],
),
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/chat/events/encrypted_content_style.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import 'package:flutter/material.dart';
class EncryptedContentStyle {
static const EdgeInsets parentPadding = EdgeInsets.symmetric(
horizontal: 8,
vertical: 6,
);
static const EdgeInsets leadingIconPadding = EdgeInsets.all(5);
static const double leadingIconSize = 20;
static const double leadingAndTextGap = 8;
static const double textMaxWidth = 165;
}

0 comments on commit 52fee27

Please sign in to comment.