fix: AboutUI

This commit is contained in:
xkeyC 2024-03-11 20:48:56 +08:00
parent 0b1b0ec5c6
commit 51393317b1

View File

@ -61,24 +61,27 @@ class AboutUI extends HookConsumerWidget {
Row( Row(
children: [ children: [
const Spacer(), const Spacer(),
Container( AnimatedSize(
width: MediaQuery.of(context).size.width * .35, duration: const Duration(milliseconds: 200),
decoration: BoxDecoration( child: Container(
color: FluentTheme.of(context).cardColor.withOpacity(.01), width: MediaQuery.of(context).size.width * .35,
borderRadius: BorderRadius.circular(12)), decoration: BoxDecoration(
child: IconButton( color: FluentTheme.of(context).cardColor.withOpacity(.06),
icon: Padding( borderRadius: BorderRadius.circular(12)),
padding: const EdgeInsets.all(3), child: IconButton(
child: Text( icon: Padding(
isTipTextCn.value ? tipTextCN : tipTextEN, padding: const EdgeInsets.all(3),
textAlign: TextAlign.start, child: Text(
style: TextStyle( isTipTextCn.value ? tipTextCN : tipTextEN,
fontSize: 12, color: Colors.white.withOpacity(.9)), 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), const SizedBox(width: 12),