diff --git a/lib/widgets/mxc_image.dart b/lib/widgets/mxc_image.dart index db2209ab23..ffdf96f148 100644 --- a/lib/widgets/mxc_image.dart +++ b/lib/widgets/mxc_image.dart @@ -54,7 +54,7 @@ class MxcImage extends StatefulWidget { } class _MxcImageState extends State - with AutomaticKeepAliveClientMixin, SingleTickerProviderStateMixin { + with SingleTickerProviderStateMixin { static const String placeholderKey = 'placeholder'; static final Map _imageDataCache = {}; Uint8List? _imageDataNoCache; @@ -200,7 +200,6 @@ class _MxcImageState extends State @override Widget build(BuildContext context) { - super.build(context); final imageWidget = widget.animated ? AnimatedSwitcher( duration: widget.animationDuration, @@ -244,8 +243,4 @@ class _MxcImageState extends State ), ); } - - @override - // TODO: implement wantKeepAlive - bool get wantKeepAlive => true; }