diff --git a/lib/screens/cart_page.dart b/lib/screens/cart_page.dart index e7ae393..ae74c1c 100644 --- a/lib/screens/cart_page.dart +++ b/lib/screens/cart_page.dart @@ -22,21 +22,25 @@ class _CartPageState extends State { child: Scaffold( body: Column( children: [ - const Padding( + Padding( padding: EdgeInsets.only(top: 8, bottom: 8, left: 15, right: 15), child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - RotatedBox( + const RotatedBox( quarterTurns: 0, child: Icon( Icons.sort, color: Colors.grey, size: 30, )), - CircleAvatar( - maxRadius: 25, - child: Image(image: AssetImage("assets/product/user.png")), + Container( + height: 40, + width: 40, + decoration: BoxDecoration( + shape: BoxShape.circle, + image: DecorationImage( + image: AssetImage("assets/product/user.png"))), ), ], ), @@ -124,9 +128,12 @@ class _CartPageState extends State { SizedBox( height: 200, width: 130, - child: Image.asset( - data.image, - scale: 0.2, + child: Hero( + tag: data.name, + child: Image.asset( + data.image, + scale: 0.2, + ), ), ), Padding( diff --git a/lib/screens/home_page.dart b/lib/screens/home_page.dart index e584c20..71b628a 100644 --- a/lib/screens/home_page.dart +++ b/lib/screens/home_page.dart @@ -305,7 +305,7 @@ class _HomePageState extends State { ? tags[0] : index == 1 ? tags[1] - : ' ', + : "", style: TextStyle( color: MyColors().mainColor, fontWeight: FontWeight.w700), diff --git a/lib/screens/product_page.dart b/lib/screens/product_page.dart index 2e4c6d6..b73d20f 100644 --- a/lib/screens/product_page.dart +++ b/lib/screens/product_page.dart @@ -142,7 +142,7 @@ class _ProductPageState extends State { height: 250, width: double.infinity, child: Hero( - tag: data.image, + tag: data.name, child: Image.asset(selectedphotoname)), ), ],