diff --git a/lib/ui/screens/user_page_screen.dart b/lib/ui/screens/user_page_screen.dart index de2e526..e68ef3b 100644 --- a/lib/ui/screens/user_page_screen.dart +++ b/lib/ui/screens/user_page_screen.dart @@ -131,7 +131,11 @@ class _UserPageScreenState extends State { padding: const EdgeInsets.all(8.0), child: Row( children: [ - AccountImageWidget(user: _userInfo), + InkWell( + onTap: () => + showImageFullScreen(context, _userInfo.accountImageURL), + child: AccountImageWidget(user: _userInfo), + ), Text(" ${_userInfo.displayName}"), Spacer(), IconButton( diff --git a/lib/ui/widgets/account_image_widget.dart b/lib/ui/widgets/account_image_widget.dart index 1331d63..827d53d 100644 --- a/lib/ui/widgets/account_image_widget.dart +++ b/lib/ui/widgets/account_image_widget.dart @@ -12,8 +12,11 @@ class AccountImageWidget extends StatelessWidget { final User user; final double width; - const AccountImageWidget({Key key, this.user, this.width = 35.0}) - : assert(user != null), + const AccountImageWidget({ + Key key, + this.user, + this.width = 35.0, + }) : assert(user != null), super(key: key); @override @@ -25,22 +28,22 @@ class AccountImageWidget extends StatelessWidget { height: width, fit: BoxFit.cover, placeholder: (c, s) => Container( - color: Colors.grey, - width: width, - height: width, - child: CircularProgressIndicator( - strokeWidth: 7.0, - ), - ), + color: Colors.grey, + width: width, + height: width, + child: CircularProgressIndicator( + strokeWidth: 7.0, + ), + ), errorWidget: (c, s, o) => Container( - color: Colors.red, - width: width, - height: width, - child: Icon( - Icons.error, - color: Colors.white, - ), - ), + color: Colors.red, + width: width, + height: width, + child: Icon( + Icons.error, + color: Colors.white, + ), + ), ), borderRadius: BorderRadius.all( Radius.circular(18.0),