⬆️ 升级支持服务器的 Event Based Messages #2

Merged
LittleSheep merged 5 commits from experimental/event-based-messages into master 2024-06-27 20:37:32 +00:00
Showing only changes of commit ec14d1e3b3 - Show all commits

View File

@ -104,16 +104,16 @@ class ChatEvent extends StatelessWidget {
], ],
); );
} else if (isQuote) { } else if (isQuote) {
return Row( return Card(
crossAxisAlignment: CrossAxisAlignment.end, child: Row(
children: [ crossAxisAlignment: CrossAxisAlignment.end,
const Opacity( children: [
opacity: 0.75, const Opacity(
child: FaIcon(FontAwesomeIcons.quoteLeft, size: 14), opacity: 0.75,
).paddingOnly(bottom: 4), child: FaIcon(FontAwesomeIcons.quoteLeft, size: 14),
const SizedBox(width: 4), ).paddingOnly(bottom: 2.75),
Expanded( const SizedBox(width: 4),
child: Card( Expanded(
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -133,11 +133,11 @@ class ChatEvent extends StatelessWidget {
), ),
buildContent().paddingOnly(left: 0.5), buildContent().paddingOnly(left: 0.5),
], ],
).paddingSymmetric(horizontal: 12, vertical: 4), ),
), ),
), ],
], ).paddingOnly(left: 12, right: 12, top: 8, bottom: 4),
).paddingOnly(left: isMerged ? 66 : 14, right: 4); ).paddingOnly(left: isMerged ? 52 : 0, right: 4);
} else { } else {
return Column( return Column(
key: Key('m${item.uuid}'), key: Key('m${item.uuid}'),