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