Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-10 13:12:54 +08:00
parent cedbac88c1
commit 664a039617
81 changed files with 771 additions and 217950 deletions

View File

@@ -90,10 +90,8 @@ class ActionItem extends StatelessWidget {
}
Widget _buildText(ThemeData theme) {
final hasText = text != null;
final child = Text(
hasText ? text! : '-',
key: hasText ? ValueKey(text!) : null,
return Text(
text != null ? text! : '-',
style: TextStyle(
color: selectStatus
? theme.colorScheme.primary
@@ -101,15 +99,5 @@ class ActionItem extends StatelessWidget {
fontSize: theme.textTheme.labelSmall!.fontSize,
),
);
if (hasText) {
return AnimatedSwitcher(
duration: const Duration(milliseconds: 300),
transitionBuilder: (Widget child, Animation<double> animation) {
return ScaleTransition(scale: animation, child: child);
},
child: child,
);
}
return child;
}
}