commit
470000ce7c
|
@ -410,9 +410,11 @@ class _FullScreenMemoryState extends State<FullScreenMemory> {
|
|||
extents: 1,
|
||||
onPageChanged: (index) async {
|
||||
await MemoriesService.instance.markMemoryAsSeen(widget.memories[index]);
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
_index = index;
|
||||
});
|
||||
}
|
||||
},
|
||||
physics: _shouldDisableScroll
|
||||
? const NeverScrollableScrollPhysics()
|
||||
|
|
|
@ -51,9 +51,11 @@ class _FileInfoWidgetState extends State<FileInfoWidget> {
|
|||
widget.file.fileType == FileType.livePhoto;
|
||||
if (_isImage) {
|
||||
getExif(widget.file).then((exif) {
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
_exif = exif;
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
super.initState();
|
||||
|
|
|
@ -78,7 +78,9 @@ class _VideoWidgetState extends State<VideoWidget> {
|
|||
.getFileSize(widget.file.uploadedFileID)
|
||||
.then((value) {
|
||||
widget.file.fileSize = value;
|
||||
if (mounted) {
|
||||
setState(() {});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -75,7 +75,6 @@ class _SearchWidgetState extends State<SearchWidget> {
|
|||
padding: const EdgeInsets.symmetric(horizontal: 4),
|
||||
child: Column(
|
||||
children: [
|
||||
const SizedBox(height: 8),
|
||||
ClipRRect(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
child: Container(
|
||||
|
|
Loading…
Reference in a new issue