feat: add web search availability provider and enhance feature toggles in chat and tools modal
This commit is contained in:
@@ -65,7 +65,12 @@ class _EnhancedImageAttachmentState
|
||||
parent: _animationController,
|
||||
curve: Curves.easeInOut,
|
||||
);
|
||||
_loadImage();
|
||||
// Defer loading until after first frame to avoid accessing inherited widgets
|
||||
// (e.g., Localizations) during initState
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (!mounted) return;
|
||||
_loadImage();
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user