From aa58785080c6b28b744045dc2b9e84a95d74819d Mon Sep 17 00:00:00 2001 From: ashilkn Date: Thu, 9 Jun 2022 18:04:47 +0530 Subject: [PATCH] fixed favorite icon, icon style + top padding --- lib/ui/fading_app_bar.dart | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/lib/ui/fading_app_bar.dart b/lib/ui/fading_app_bar.dart index bb42ab4d6..387090234 100644 --- a/lib/ui/fading_app_bar.dart +++ b/lib/ui/fading_app_bar.dart @@ -69,10 +69,6 @@ class FadingAppBarState extends State { ), ), child: _buildAppBar(), - // child: _buildAppBar()Padding(_buildAppBar() - // padding: const EdgeInsets.only(top: 0), - // child: SafeArea(child: _buildAppBar()), - // ), ), opacity: _shouldHide ? 0 : 1, duration: Duration(milliseconds: 150), @@ -241,15 +237,11 @@ class FadingAppBarState extends State { return hasError ? oldValue : isLiked; }, likeBuilder: (isLiked) { - return Padding( - padding: const EdgeInsets.only(top: 8.0), - child: Icon( - Icons.favorite_border, - color: isLiked - ? Colors.pinkAccent - : Colors.white, //same for both themes - size: 24, - ), + return Icon( + isLiked ? Icons.favorite_rounded : Icons.favorite_border, + color: + isLiked ? Colors.pinkAccent : Colors.white, //same for both themes + size: 24, ); }, );