diff --git a/CHANGELOG.md b/CHANGELOG.md index 4592a69..a0f991f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.1.6 + +- Fixed avatar image zooming when constrained beyond it's size + ## 1.1.5 - Added custom background color for avatar diff --git a/lib/src/widgets/avatar/avatar.dart b/lib/src/widgets/avatar/avatar.dart index 6b7be6b..81bf2e8 100644 --- a/lib/src/widgets/avatar/avatar.dart +++ b/lib/src/widgets/avatar/avatar.dart @@ -37,7 +37,7 @@ class Avatar extends StatelessWidget { image: hasImage ? DecorationImage( image: imageProvider, - fit: BoxFit.cover, + fit: BoxFit.contain, ) : null, ), diff --git a/pubspec.yaml b/pubspec.yaml index bd29ce5..711b548 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_profile description: Flutter profile package -version: 1.1.5 +version: 1.1.6 repository: https://github.com/Iconica-Development/flutter_profile environment: