2025-06-18 11:28:37 +08:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
2025-08-12 13:36:42 +08:00
|
|
|
class AssistantAvatar extends StatelessWidget {
|
2025-06-18 11:28:37 +08:00
|
|
|
final double width;
|
|
|
|
|
final double height;
|
|
|
|
|
|
2025-08-12 13:36:42 +08:00
|
|
|
const AssistantAvatar({
|
2025-06-18 11:28:37 +08:00
|
|
|
super.key,
|
2025-08-12 13:36:42 +08:00
|
|
|
this.width = 132,
|
|
|
|
|
this.height = 132,
|
2025-06-18 11:28:37 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return SizedBox(
|
|
|
|
|
width: width,
|
|
|
|
|
height: height,
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
'assets/images/avatar.png',
|
|
|
|
|
fit: BoxFit.contain,
|
2025-09-10 17:33:26 +08:00
|
|
|
package: 'ai_chat_assistant',
|
2025-06-18 11:28:37 +08:00
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|