fix: text sharing

This commit is contained in:
cogwheel0
2025-08-28 18:54:06 +05:30
parent 5c72537932
commit 6427caaa5d
8 changed files with 122 additions and 57 deletions

View File

@@ -468,6 +468,13 @@ class _ShimmerLoaderState extends State<ShimmerLoader>
super.dispose();
}
@override
void deactivate() {
// Pause shimmer during deactivation to avoid rebuilds in wrong build scope
_shimmerController.stop();
super.deactivate();
}
@override
Widget build(BuildContext context) {
final theme = context.conduitTheme;

View File

@@ -229,6 +229,13 @@ class _SkeletonLoaderState extends State<_SkeletonLoader>
super.dispose();
}
@override
void deactivate() {
// Pause shimmer during deactivation to avoid rebuilds in wrong build scope
_controller.stop();
super.deactivate();
}
@override
Widget build(BuildContext context) {
return Container(

View File

@@ -55,6 +55,13 @@ class _SkeletonLoaderState extends State<SkeletonLoader>
super.dispose();
}
@override
void deactivate() {
// Pause shimmer during deactivation to avoid rebuilds in wrong build scope
_controller.stop();
super.deactivate();
}
@override
Widget build(BuildContext context) {
return AnimatedBuilder(