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