This commit is contained in:
pradeepkumar
2026-03-31 23:23:08 +05:30
parent 26611274d5
commit 5f146853bd
4 changed files with 86 additions and 10 deletions

View File

@@ -83,7 +83,22 @@ class _AppShellState extends State<AppShell> {
child: const HomeHeader(),
),
Expanded(
child: widget.child,
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,
),
),
),
],
),