usew new icon frame
This commit is contained in:
parent
a6f370ccf5
commit
a6caf4aa6a
6 changed files with 27 additions and 8 deletions
|
|
@ -15,7 +15,9 @@ class MIHProfilePicture extends StatefulWidget {
|
|||
final double radius;
|
||||
final bool drawerMode;
|
||||
final bool editable;
|
||||
final Color frameColor;
|
||||
final onChange;
|
||||
|
||||
MIHProfilePicture({
|
||||
super.key,
|
||||
required this.profilePictureFile,
|
||||
|
|
@ -26,6 +28,7 @@ class MIHProfilePicture extends StatefulWidget {
|
|||
required this.drawerMode,
|
||||
required this.editable,
|
||||
required this.onChange,
|
||||
required this.frameColor,
|
||||
});
|
||||
|
||||
@override
|
||||
|
|
@ -50,9 +53,12 @@ class _MIHProfilePictureState extends State<MIHProfilePicture> {
|
|||
),
|
||||
SizedBox(
|
||||
width: widget.width,
|
||||
child: Icon(
|
||||
MihIcons.mihCircleFrame,
|
||||
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
||||
child: FittedBox(
|
||||
fit: BoxFit.fill,
|
||||
child: Icon(
|
||||
MihIcons.mihCircleFrame,
|
||||
color: widget.frameColor,
|
||||
),
|
||||
),
|
||||
),
|
||||
Visibility(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue