💄 Optimize chat message cursor
This commit is contained in:
@@ -113,12 +113,15 @@ class MessageContent extends StatelessWidget {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Flexible(
|
Flexible(
|
||||||
|
child: MouseRegion(
|
||||||
|
cursor: SystemMouseCursors.text,
|
||||||
child: MarkdownTextContent(
|
child: MarkdownTextContent(
|
||||||
content: item.content ?? '*${item.type} has no content*',
|
content: item.content ?? '*${item.type} has no content*',
|
||||||
isSelectable: true,
|
isSelectable: true,
|
||||||
linesMargin: EdgeInsets.zero,
|
linesMargin: EdgeInsets.zero,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
if (translatedText?.isNotEmpty ?? false)
|
if (translatedText?.isNotEmpty ?? false)
|
||||||
...([
|
...([
|
||||||
ConstrainedBox(
|
ConstrainedBox(
|
||||||
@@ -137,11 +140,14 @@ class MessageContent extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
).padding(vertical: 4),
|
).padding(vertical: 4),
|
||||||
),
|
),
|
||||||
MarkdownTextContent(
|
MouseRegion(
|
||||||
|
cursor: SystemMouseCursors.text,
|
||||||
|
child: MarkdownTextContent(
|
||||||
content: translatedText!,
|
content: translatedText!,
|
||||||
isSelectable: true,
|
isSelectable: true,
|
||||||
linesMargin: EdgeInsets.zero,
|
linesMargin: EdgeInsets.zero,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
]),
|
]),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
@@ -161,6 +161,8 @@ class MessageItem extends HookConsumerWidget {
|
|||||||
: Colors.transparent;
|
: Colors.transparent;
|
||||||
|
|
||||||
return InkWell(
|
return InkWell(
|
||||||
|
mouseCursor: MouseCursor.defer,
|
||||||
|
focusColor: Colors.transparent,
|
||||||
onLongPress: showActionMenu,
|
onLongPress: showActionMenu,
|
||||||
onSecondaryTap: showActionMenu,
|
onSecondaryTap: showActionMenu,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
|
Reference in New Issue
Block a user