mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-11-04 06:17:26 +01:00 
			
		
		
		
	Merge branch 'krille/flickering-avatars' into 'main'
chore: Follow up flickering avatars See merge request famedly/fluffychat!972
This commit is contained in:
		
						commit
						cd462d0ab1
					
				@ -130,6 +130,7 @@ class _MxcImageState extends State<MxcImage> {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  void _tryLoad(_) async {
 | 
			
		||||
    if (_imageData != null) return;
 | 
			
		||||
    try {
 | 
			
		||||
      await _load();
 | 
			
		||||
    } catch (_) {
 | 
			
		||||
@ -169,6 +170,7 @@ class _MxcImageState extends State<MxcImage> {
 | 
			
		||||
              fit: widget.fit,
 | 
			
		||||
              errorBuilder: (context, __, ___) {
 | 
			
		||||
                _isCached = false;
 | 
			
		||||
                _imageData = null;
 | 
			
		||||
                WidgetsBinding.instance.addPostFrameCallback(_tryLoad);
 | 
			
		||||
                return placeholder(context);
 | 
			
		||||
              },
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user