[bugfix] chat bubble error and Pronounce ID.UNYX error
This commit is contained in:
@@ -61,30 +61,31 @@ class _ChatBubbleState extends State<ChatBubble> {
|
||||
),
|
||||
child: _buildAssistantContent(isThinking),
|
||||
)
|
||||
: IntrinsicWidth(
|
||||
child: Container(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 12, vertical: 12),
|
||||
decoration: BoxDecoration(
|
||||
color: message.isUser
|
||||
? CommonUtil.commonColor
|
||||
: Colors.white.withValues(alpha: 0.12),
|
||||
borderRadius: message.isUser
|
||||
? BorderRadius.only(
|
||||
topLeft: Radius.circular(12),
|
||||
bottomLeft: Radius.circular(12),
|
||||
bottomRight: Radius.circular(12),
|
||||
)
|
||||
: BorderRadius.only(
|
||||
topRight: Radius.circular(12),
|
||||
bottomLeft: Radius.circular(12),
|
||||
bottomRight: Radius.circular(12),
|
||||
),
|
||||
),
|
||||
child: message.isUser
|
||||
? _buildUserContent()
|
||||
: _buildAssistantContent(isThinking),
|
||||
: Container(
|
||||
constraints: const BoxConstraints(
|
||||
minWidth: 50,
|
||||
),
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 12, vertical: 12),
|
||||
decoration: BoxDecoration(
|
||||
color: message.isUser
|
||||
? CommonUtil.commonColor
|
||||
: Colors.white.withOpacity(0.12),
|
||||
borderRadius: message.isUser
|
||||
? BorderRadius.only(
|
||||
topLeft: Radius.circular(12),
|
||||
bottomLeft: Radius.circular(12),
|
||||
bottomRight: Radius.circular(12),
|
||||
)
|
||||
: BorderRadius.only(
|
||||
topRight: Radius.circular(12),
|
||||
bottomLeft: Radius.circular(12),
|
||||
bottomRight: Radius.circular(12),
|
||||
),
|
||||
),
|
||||
child: message.isUser
|
||||
? _buildUserContent()
|
||||
: _buildAssistantContent(isThinking),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user