样式修改
This commit is contained in:
BIN
assets/images/checked.png
Normal file
BIN
assets/images/checked.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1017 B |
@@ -145,8 +145,12 @@ class _ChatBubbleState extends State<ChatBubble> {
|
||||
break;
|
||||
case MessageStatus.completed:
|
||||
case MessageStatus.success:
|
||||
icon = const Icon(Icons.check_circle, size: 16, color: Colors.green);
|
||||
color = Colors.green;
|
||||
icon = Image.asset(
|
||||
'assets/images/checked.png',
|
||||
width: 20,
|
||||
height: 20
|
||||
);
|
||||
color = Colors.white;
|
||||
break;
|
||||
case MessageStatus.failure:
|
||||
icon = const Icon(Icons.error, size: 16, color: Colors.red);
|
||||
@@ -265,10 +269,10 @@ class _ChatBubbleState extends State<ChatBubble> {
|
||||
children: [
|
||||
const SizedBox(height: 6),
|
||||
const Opacity(
|
||||
opacity: 0.2,
|
||||
child: Divider(color: Colors.grey, height: 1),
|
||||
opacity: 0.08,
|
||||
child: Divider(color: Colors.white, height: 1),
|
||||
),
|
||||
const SizedBox(height: 6),
|
||||
const SizedBox(height: 12),
|
||||
SizedBox(
|
||||
height: 24,
|
||||
child: isThinking
|
||||
@@ -325,9 +329,8 @@ class _ChatBubbleState extends State<ChatBubble> {
|
||||
padding: const EdgeInsets.only(left: 12),
|
||||
child: Image.asset(
|
||||
'assets/images/copy.png',
|
||||
width: 20,
|
||||
height: 20,
|
||||
color: Colors.white,
|
||||
width: 24,
|
||||
height: 24
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -342,9 +345,9 @@ class _ChatBubbleState extends State<ChatBubble> {
|
||||
padding: const EdgeInsets.only(left: 12),
|
||||
child: _liked
|
||||
? Image.asset('assets/images/liked2.png',
|
||||
width: 20, height: 20)
|
||||
width: 24, height: 24)
|
||||
: Image.asset('assets/images/liked1.png',
|
||||
width: 20, height: 20),
|
||||
width: 24, height: 24),
|
||||
),
|
||||
),
|
||||
InkWell(
|
||||
@@ -358,9 +361,9 @@ class _ChatBubbleState extends State<ChatBubble> {
|
||||
padding: const EdgeInsets.only(left: 12),
|
||||
child: _disliked
|
||||
? Image.asset('assets/images/disliked2.png',
|
||||
width: 20, height: 20)
|
||||
width: 24, height: 24)
|
||||
: Image.asset('assets/images/disliked1.png',
|
||||
width: 20, height: 20)),
|
||||
width: 24, height: 24)),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -117,7 +117,7 @@ class _ChatFooterState extends State<ChatFooter>
|
||||
)
|
||||
: Text(
|
||||
Intl.getCurrentLocale().startsWith('zh')
|
||||
? '按 住 说 话'
|
||||
? '按住 说话'
|
||||
: 'Hold to Speak',
|
||||
style: TextStyle(
|
||||
color: CommonUtil.commonColor,
|
||||
|
||||
Reference in New Issue
Block a user