fix(chat): place the activity chevron beside its text and space it from the bubble
This commit is contained in:
@@ -241,6 +241,8 @@ class ChatMessageView extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
streaming: row['streaming'] == true,
|
streaming: row['streaming'] == true,
|
||||||
),
|
),
|
||||||
|
// A little air between the one-line turn status and the answer bubble.
|
||||||
|
if (content.isNotEmpty) const SizedBox(height: 6),
|
||||||
if (content.isNotEmpty) bubble,
|
if (content.isNotEmpty) bubble,
|
||||||
if (footer.isNotEmpty)
|
if (footer.isNotEmpty)
|
||||||
Wrap(
|
Wrap(
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ class _ChatTurnActivityViewState extends State<ChatTurnActivityView> {
|
|||||||
),
|
),
|
||||||
const SizedBox(width: 8),
|
const SizedBox(width: 8),
|
||||||
],
|
],
|
||||||
Expanded(
|
Flexible(
|
||||||
child: Text(
|
child: Text(
|
||||||
label,
|
label,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
@@ -165,6 +165,7 @@ class _ChatTurnActivityViewState extends State<ChatTurnActivityView> {
|
|||||||
style: TextStyle(color: color),
|
style: TextStyle(color: color),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
const SizedBox(width: 4),
|
||||||
Icon(
|
Icon(
|
||||||
cupertino ? CupertinoIcons.chevron_right : Icons.chevron_right,
|
cupertino ? CupertinoIcons.chevron_right : Icons.chevron_right,
|
||||||
color: color,
|
color: color,
|
||||||
|
|||||||
Reference in New Issue
Block a user