From 272044a77eb916bec03720084ec87b172f643ba9 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Wed, 7 Aug 2024 01:06:57 +0800 Subject: [PATCH] :lipstick: Optimize logo in signup & signin popup --- lib/screens/auth/signin.dart | 6 ++++-- lib/screens/auth/signup.dart | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/screens/auth/signin.dart b/lib/screens/auth/signin.dart index e973771..7079743 100644 --- a/lib/screens/auth/signin.dart +++ b/lib/screens/auth/signin.dart @@ -136,8 +136,10 @@ class _SignInPopupState extends State with ProtocolListener { mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: [ - Image.asset('assets/logo.png', width: 64, height: 64) - .paddingOnly(bottom: 4), + ClipRRect( + borderRadius: const BorderRadius.all(Radius.circular(8)), + child: Image.asset('assets/logo.png', width: 64, height: 64), + ).paddingOnly(bottom: 4), Text( 'signinGreeting'.tr, style: const TextStyle( diff --git a/lib/screens/auth/signup.dart b/lib/screens/auth/signup.dart index e5ae574..aa9be90 100644 --- a/lib/screens/auth/signup.dart +++ b/lib/screens/auth/signup.dart @@ -70,8 +70,10 @@ class _SignUpPopupState extends State { mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: [ - Image.asset('assets/logo.png', width: 64, height: 64) - .paddingOnly(bottom: 4), + ClipRRect( + borderRadius: const BorderRadius.all(Radius.circular(8)), + child: Image.asset('assets/logo.png', width: 64, height: 64), + ).paddingOnly(bottom: 4), Text( 'signupGreeting'.tr, style: const TextStyle(