opt: anim save panel

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-10 21:07:58 +08:00
parent 37bd849a86
commit 99b19e7b03

View File

@@ -286,6 +286,10 @@ class _SavePanelState extends State<SavePanel> {
color: Theme.of(context).colorScheme.surface,
borderRadius: BorderRadius.circular(12),
),
child: AnimatedSize(
curve: Curves.easeInOut,
alignment: Alignment.topCenter,
duration: const Duration(milliseconds: 255),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
@@ -376,7 +380,8 @@ class _SavePanelState extends State<SavePanel> {
children: [
Expanded(
child: Column(
mainAxisSize: MainAxisSize.min,
mainAxisSize:
MainAxisSize.min,
crossAxisAlignment:
CrossAxisAlignment.end,
children: [
@@ -385,10 +390,11 @@ class _SavePanelState extends State<SavePanel> {
Text(
'@$uname',
maxLines: 1,
overflow:
TextOverflow.ellipsis,
overflow: TextOverflow
.ellipsis,
style: TextStyle(
color: Theme.of(context)
color:
Theme.of(context)
.colorScheme
.primary,
),
@@ -424,7 +430,8 @@ class _SavePanelState extends State<SavePanel> {
Container(
width: 100,
height: 100,
padding: const EdgeInsets.all(12),
padding:
const EdgeInsets.all(12),
child: Container(
color: Get.isDarkMode
? Colors.white
@@ -470,6 +477,7 @@ class _SavePanelState extends State<SavePanel> {
),
),
),
),
Positioned(
left: 0,
right: 0,