mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-08-25 15:39:41 +00:00
Replace Container with AnimatedContainer in CommunityStructureCanvas to enhance visual feedback during state changes. Adjust alpha value for improved visibility based on candidate data presence.
This commit is contained in:
@ -445,13 +445,14 @@ class _CommunityStructureCanvasState extends State<CommunityStructureCanvas>
|
|||||||
return const SizedBox.shrink();
|
return const SizedBox.shrink();
|
||||||
}
|
}
|
||||||
|
|
||||||
return Container(
|
return AnimatedContainer(
|
||||||
|
duration: const Duration(milliseconds: 150),
|
||||||
width: 40,
|
width: 40,
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
height: _cardHeight,
|
height: _cardHeight,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: context.theme.colorScheme.primary.withValues(
|
color: context.theme.colorScheme.primary.withValues(
|
||||||
alpha: candidateData.isNotEmpty ? 0.7 : 0.3,
|
alpha: candidateData.isNotEmpty ? 0.9 : 0.3,
|
||||||
),
|
),
|
||||||
borderRadius: BorderRadius.circular(8),
|
borderRadius: BorderRadius.circular(8),
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user