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

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

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,
),
],
),