refactor: remove redundant AnimatedSwitcher and update routing transitions to use slide animations for detail screens

This commit is contained in:
pradeepkumar committed 2026-04-02 17:57:57 +05:30
1 parent 18cf495672
commit 2913947a34
2 files changed
+75 -60

No files matched your search

+1 -16
View File
@@ -83,22 +83,7 @@ class _AppShellState extends State<AppShell> {
child: const HomeHeader(),
),
Expanded(
child: AnimatedSwitcher(
duration: const Duration(milliseconds: 250),
switchInCurve: Curves.easeOut,
switchOutCurve: Curves.easeIn,
transitionBuilder: (child, animation) {
return FadeTransition(
opacity: animation,
child: child,
);
},
child: SizedBox(
key: ValueKey(widget.child.runtimeType.hashCode ^
widget.child.hashCode),
child: widget.child,
),
),
child: widget.child,
),
],
),