Files
ai_chat_assistant/lib/widgets/assistant_avatar.dart

24 lines
454 B
Dart
Raw Normal View History

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,
),
);
}
}