From 51393317b12851da5d01a4b3cb66f292dc0df423 Mon Sep 17 00:00:00 2001 From: xkeyC <3334969096@qq.com> Date: Mon, 11 Mar 2024 20:48:56 +0800 Subject: [PATCH] fix: AboutUI --- lib/ui/about/about_ui.dart | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/lib/ui/about/about_ui.dart b/lib/ui/about/about_ui.dart index 6bda271..95fb1b2 100644 --- a/lib/ui/about/about_ui.dart +++ b/lib/ui/about/about_ui.dart @@ -61,24 +61,27 @@ class AboutUI extends HookConsumerWidget { Row( children: [ const Spacer(), - Container( - width: MediaQuery.of(context).size.width * .35, - decoration: BoxDecoration( - color: FluentTheme.of(context).cardColor.withOpacity(.01), - borderRadius: BorderRadius.circular(12)), - child: IconButton( - icon: Padding( - padding: const EdgeInsets.all(3), - child: Text( - isTipTextCn.value ? tipTextCN : tipTextEN, - textAlign: TextAlign.start, - style: TextStyle( - fontSize: 12, color: Colors.white.withOpacity(.9)), + AnimatedSize( + duration: const Duration(milliseconds: 200), + child: Container( + width: MediaQuery.of(context).size.width * .35, + decoration: BoxDecoration( + color: FluentTheme.of(context).cardColor.withOpacity(.06), + borderRadius: BorderRadius.circular(12)), + child: IconButton( + icon: Padding( + padding: const EdgeInsets.all(3), + child: Text( + isTipTextCn.value ? tipTextCN : tipTextEN, + textAlign: TextAlign.start, + style: TextStyle( + fontSize: 12, color: Colors.white.withOpacity(.9)), + ), ), + onPressed: () { + isTipTextCn.value = !isTipTextCn.value; + }, ), - onPressed: () { - isTipTextCn.value = !isTipTextCn.value; - }, ), ), const SizedBox(width: 12),