加入人物名称索引条

This commit is contained in:
DelLevin-Home
2026-08-09 21:46:23 +08:00
parent 306982207e
commit b55523c3b9
4 changed files with 235 additions and 7 deletions

View File

@@ -58,13 +58,15 @@ class _FadeInLocalImageState extends State<FadeInLocalImage>
}
final file = File(widget.path!);
if (file.existsSync()) {
final exists = await file.exists();
if (!mounted) return;
if (exists) {
setState(() => _loaded = true);
_controller.forward();
return;
}
setState(() => _error = true);
if (mounted) setState(() => _error = true);
}
@override