mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Fix refresh when changing account image
This commit is contained in:
		@@ -6,8 +6,12 @@ import 'package:comunic/utils/intl_utils.dart';
 | 
			
		||||
import 'package:flutter/material.dart';
 | 
			
		||||
 | 
			
		||||
class AccountImageTourPane extends PresentationPane {
 | 
			
		||||
  AccountImageTourPane({@required User user})
 | 
			
		||||
      : super(
 | 
			
		||||
  final Function(BuildContext) onUpdated;
 | 
			
		||||
 | 
			
		||||
  AccountImageTourPane({
 | 
			
		||||
    @required User user,
 | 
			
		||||
    @required this.onUpdated,
 | 
			
		||||
  }) : super(
 | 
			
		||||
            iconWidget: AccountImageWidget(user: user, width: 50),
 | 
			
		||||
            title: tr("Account image"),
 | 
			
		||||
            text: tr(
 | 
			
		||||
@@ -15,5 +19,6 @@ class AccountImageTourPane extends PresentationPane {
 | 
			
		||||
            actionTitle: tr("Upload an account image"),
 | 
			
		||||
            onActionTap: (ctx) async {
 | 
			
		||||
              await uploadNewAccountImage(ctx);
 | 
			
		||||
              onUpdated(ctx);
 | 
			
		||||
            });
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user