0812
This commit is contained in:
24
lib/widgets/assistant_avatar.dart
Normal file
24
lib/widgets/assistant_avatar.dart
Normal file
@@ -0,0 +1,24 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class AssistantAvatar extends StatelessWidget {
|
||||
final double width;
|
||||
final double height;
|
||||
|
||||
const AssistantAvatar({
|
||||
super.key,
|
||||
this.width = 132,
|
||||
this.height = 132,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return SizedBox(
|
||||
width: width,
|
||||
height: height,
|
||||
child: Image.asset(
|
||||
'assets/images/avatar.png',
|
||||
fit: BoxFit.contain,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user