同步 oneApp 的代码
This commit is contained in:
@@ -123,7 +123,12 @@ class _ChatBubbleState extends State<ChatBubble> {
|
||||
break;
|
||||
case MessageStatus.completed:
|
||||
case MessageStatus.success:
|
||||
icon = Image.asset('assets/images/checked.png', width: 20, height: 20, package: 'ai_chat_assistant',);
|
||||
icon = Image.asset(
|
||||
'assets/images/checked.png',
|
||||
width: 20,
|
||||
height: 20,
|
||||
package: 'ai_chat_assistant',
|
||||
);
|
||||
color = Colors.white;
|
||||
break;
|
||||
case MessageStatus.failure:
|
||||
@@ -301,8 +306,10 @@ class _ChatBubbleState extends State<ChatBubble> {
|
||||
},
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(left: 12),
|
||||
child: Image.asset('assets/images/copy.png',package: 'ai_chat_assistant',
|
||||
width: 22, height: 22),
|
||||
child: Image.asset('assets/images/copy.png',
|
||||
package: 'ai_chat_assistant',
|
||||
width: 22,
|
||||
height: 22),
|
||||
),
|
||||
),
|
||||
InkWell(
|
||||
@@ -315,10 +322,14 @@ class _ChatBubbleState extends State<ChatBubble> {
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(left: 12),
|
||||
child: _liked
|
||||
? Image.asset('assets/images/liked2.png',package: 'ai_chat_assistant',
|
||||
width: 22, height: 22)
|
||||
: Image.asset('assets/images/liked1.png',package: 'ai_chat_assistant',
|
||||
width: 22, height: 22),
|
||||
? Image.asset('assets/images/liked2.png',
|
||||
package: 'ai_chat_assistant',
|
||||
width: 22,
|
||||
height: 22)
|
||||
: Image.asset('assets/images/liked1.png',
|
||||
package: 'ai_chat_assistant',
|
||||
width: 22,
|
||||
height: 22),
|
||||
),
|
||||
),
|
||||
InkWell(
|
||||
@@ -331,10 +342,14 @@ class _ChatBubbleState extends State<ChatBubble> {
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(left: 12),
|
||||
child: _disliked
|
||||
? Image.asset('assets/images/disliked2.png',package: 'ai_chat_assistant',
|
||||
width: 22, height: 22)
|
||||
: Image.asset('assets/images/disliked1.png',package: 'ai_chat_assistant',
|
||||
width: 22, height: 22)),
|
||||
? Image.asset('assets/images/disliked2.png',
|
||||
package: 'ai_chat_assistant',
|
||||
width: 22,
|
||||
height: 22)
|
||||
: Image.asset('assets/images/disliked1.png',
|
||||
package: 'ai_chat_assistant',
|
||||
width: 22,
|
||||
height: 22)),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user