meow meow meow meow
This commit is contained in:
parent
d7a35beb3a
commit
51c3cf8b04
|
@ -127,7 +127,8 @@ class _DirectMessageState extends State<DirectMessage> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.all(themes.defaultSeperatorHeight * 2),
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: themes.defaultSeperatorHeight * 2),
|
||||
child: Align(
|
||||
alignment: (widget.model.identity ==
|
||||
"${widget.model.account.acct}@${global.settings!.identities[widget.model.identity]!.instanceUrl}")
|
||||
|
@ -135,7 +136,10 @@ class _DirectMessageState extends State<DirectMessage> {
|
|||
: Alignment.centerLeft,
|
||||
child: LayoutBuilder(builder: ((ctx, constraints) {
|
||||
return Container(
|
||||
constraints: BoxConstraints(maxWidth: constraints.maxWidth * 0.96),
|
||||
constraints: BoxConstraints(
|
||||
maxWidth: constraints.maxWidth * 0.96 +
|
||||
themes.defaultSeperatorHeight * 2,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).colorScheme.surface,
|
||||
border: Border.all(
|
||||
|
|
|
@ -3,6 +3,7 @@ import 'package:localization/localization.dart';
|
|||
import 'package:loris/business_logic/chat/chat.dart';
|
||||
import 'package:loris/dialogues/chatwindow.dart';
|
||||
import 'package:loris/partials/loadingbox.dart';
|
||||
import 'package:loris/partials/post.dart';
|
||||
import 'package:loris/partials/post_text_renderer.dart';
|
||||
import 'package:loris/themes/themes.dart' as themes;
|
||||
import 'package:loris/global.dart' as global;
|
||||
|
@ -102,6 +103,10 @@ class ConversationButton extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final List<DisplayName> people = [];
|
||||
for (var p in model.accounts) {
|
||||
people.add(DisplayName(account: p));
|
||||
}
|
||||
return Align(
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
|
@ -127,26 +132,35 @@ class ConversationButton extends StatelessWidget {
|
|||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
ElevatedButton.icon(
|
||||
onPressed: onTap,
|
||||
icon: const Icon(Icons.open_in_full),
|
||||
label: Text("show".i18n())),
|
||||
if (model.unread) const UnreadIndicator(),
|
||||
],
|
||||
),
|
||||
Wrap(
|
||||
alignment: WrapAlignment.spaceBetween,
|
||||
children: [
|
||||
SelectableText(model.getAccountsString()),
|
||||
SelectableText("${"you-are".i18n()} ${model.identity}"),
|
||||
],
|
||||
),
|
||||
if (model.lastStatus != null)
|
||||
PostTextRenderer(input: model.lastStatus!.content),
|
||||
],
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
ElevatedButton.icon(
|
||||
onPressed: onTap,
|
||||
icon: const Icon(Icons.open_in_full),
|
||||
label: Text("show".i18n())),
|
||||
if (model.unread) const UnreadIndicator(),
|
||||
],
|
||||
),
|
||||
Wrap(
|
||||
alignment: WrapAlignment.spaceBetween,
|
||||
children: [
|
||||
SelectableText(model.getAccountsString()),
|
||||
SelectableText(
|
||||
"${"you-are".i18n()} ${model.identity}"),
|
||||
],
|
||||
),
|
||||
if (model.lastStatus != null)
|
||||
PostTextRenderer(input: model.lastStatus!.content),
|
||||
Divider(
|
||||
color: Theme.of(context).hintColor,
|
||||
),
|
||||
SelectableText(
|
||||
"conversation-participants".i18n(),
|
||||
style: Theme.of(context).textTheme.displaySmall,
|
||||
),
|
||||
] +
|
||||
people,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue