Compare commits
No commits in common. "85bba21285b87edd71c11e444e149909d24e580e" and "fdeb52bf3823038f56b0e791b431a9e40d05a3fe" have entirely different histories.
85bba21285
...
fdeb52bf38
@ -167,7 +167,6 @@ class SolianMessages extends Translations {
|
|||||||
'Your notification settings has been applied.',
|
'Your notification settings has been applied.',
|
||||||
'messageUnsync': 'Messages Un-synced',
|
'messageUnsync': 'Messages Un-synced',
|
||||||
'messageUnsyncCaption': '@count message(s) still in un-synced.',
|
'messageUnsyncCaption': '@count message(s) still in un-synced.',
|
||||||
'messageSending': 'Sending...',
|
|
||||||
'messageEditDesc': 'Edited message @id',
|
'messageEditDesc': 'Edited message @id',
|
||||||
'messageDeleteDesc': 'Deleted message @id',
|
'messageDeleteDesc': 'Deleted message @id',
|
||||||
'messageCallStartDesc': '@user starts a call',
|
'messageCallStartDesc': '@user starts a call',
|
||||||
@ -387,7 +386,7 @@ class SolianMessages extends Translations {
|
|||||||
'channelNotifyLevelApplied': '你的通知设置已经应用。',
|
'channelNotifyLevelApplied': '你的通知设置已经应用。',
|
||||||
'messageUnsync': '消息未同步',
|
'messageUnsync': '消息未同步',
|
||||||
'messageUnsyncCaption': '还有 @count 条消息未同步',
|
'messageUnsyncCaption': '还有 @count 条消息未同步',
|
||||||
'messageSending': '消息发送中…',
|
'messageDecoding': '解码信息中…',
|
||||||
'messageEditDesc': '修改了消息 @id',
|
'messageEditDesc': '修改了消息 @id',
|
||||||
'messageDeleteDesc': '删除了消息 @id',
|
'messageDeleteDesc': '删除了消息 @id',
|
||||||
'messageCallStartDesc': '@user 发起了一次通话',
|
'messageCallStartDesc': '@user 发起了一次通话',
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_animate/flutter_animate.dart';
|
|
||||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:solian/controllers/chat_events_controller.dart';
|
import 'package:solian/controllers/chat_events_controller.dart';
|
||||||
@ -125,24 +124,12 @@ class ChatEvent extends StatelessWidget {
|
|||||||
Widget buildBody(BuildContext context) {
|
Widget buildBody(BuildContext context) {
|
||||||
if (isContentPreviewing || (isMerged && !isQuote)) {
|
if (isContentPreviewing || (isMerged && !isQuote)) {
|
||||||
return Column(
|
return Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
children: [
|
||||||
if (item.body['quote_event'] != null && chatController != null)
|
if (item.body['quote_event'] != null && chatController != null)
|
||||||
buildQuote(),
|
buildQuote(),
|
||||||
Row(
|
buildContent(),
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
|
||||||
children: [
|
|
||||||
Expanded(child: buildContent()),
|
|
||||||
if (item.isPending)
|
|
||||||
const SizedBox(
|
|
||||||
width: 12,
|
|
||||||
height: 12,
|
|
||||||
child: CircularProgressIndicator(strokeWidth: 2),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
);
|
||||||
],
|
|
||||||
).paddingOnly(right: 12);
|
|
||||||
} else if (isQuote) {
|
} else if (isQuote) {
|
||||||
return Card(
|
return Card(
|
||||||
child: Row(
|
child: Row(
|
||||||
@ -216,18 +203,7 @@ class ChatEvent extends StatelessWidget {
|
|||||||
if (item.body['quote_event'] != null &&
|
if (item.body['quote_event'] != null &&
|
||||||
chatController != null)
|
chatController != null)
|
||||||
buildQuote(),
|
buildQuote(),
|
||||||
Row(
|
buildContent(),
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
|
||||||
children: [
|
|
||||||
Expanded(child: buildContent()),
|
|
||||||
if (item.isPending)
|
|
||||||
const SizedBox(
|
|
||||||
width: 12,
|
|
||||||
height: 12,
|
|
||||||
child: CircularProgressIndicator(strokeWidth: 2),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -54,7 +54,6 @@ class ChatEventMessage extends StatelessWidget {
|
|||||||
markdown.ExtensionSet.gitHubFlavored.blockSyntaxes,
|
markdown.ExtensionSet.gitHubFlavored.blockSyntaxes,
|
||||||
<markdown.InlineSyntax>[
|
<markdown.InlineSyntax>[
|
||||||
markdown.EmojiSyntax(),
|
markdown.EmojiSyntax(),
|
||||||
markdown.AutolinkExtensionSyntax(),
|
|
||||||
...markdown.ExtensionSet.gitHubFlavored.inlineSyntaxes
|
...markdown.ExtensionSet.gitHubFlavored.inlineSyntaxes
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -83,7 +83,6 @@ class _PostItemState extends State<PostItem> {
|
|||||||
markdown.ExtensionSet.gitHubFlavored.blockSyntaxes,
|
markdown.ExtensionSet.gitHubFlavored.blockSyntaxes,
|
||||||
<markdown.InlineSyntax>[
|
<markdown.InlineSyntax>[
|
||||||
markdown.EmojiSyntax(),
|
markdown.EmojiSyntax(),
|
||||||
markdown.AutolinkExtensionSyntax(),
|
|
||||||
...markdown.ExtensionSet.gitHubFlavored.inlineSyntaxes
|
...markdown.ExtensionSet.gitHubFlavored.inlineSyntaxes
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user