mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 12:14:11 +00:00 
			
		
		
		
	Force square account image
This commit is contained in:
		@@ -12,6 +12,7 @@ import 'package:comunic/utils/intl_utils.dart';
 | 
			
		||||
import 'package:comunic/utils/ui_utils.dart';
 | 
			
		||||
import 'package:flutter/material.dart';
 | 
			
		||||
import 'package:identicon/identicon.dart';
 | 
			
		||||
import 'package:image_cropper/image_cropper.dart';
 | 
			
		||||
import 'package:random_string/random_string.dart';
 | 
			
		||||
import 'package:settings_ui/settings_ui.dart';
 | 
			
		||||
 | 
			
		||||
@@ -160,7 +161,8 @@ class _AccountImageSettingsScreenState
 | 
			
		||||
  /// Upload a new account image
 | 
			
		||||
  void _uploadAccountImage() async {
 | 
			
		||||
    try {
 | 
			
		||||
      final image = await pickImage(context);
 | 
			
		||||
      final image = await pickImage(context,
 | 
			
		||||
          aspectRatio: CropAspectRatio(ratioX: 5, ratioY: 5));
 | 
			
		||||
 | 
			
		||||
      if (image == null) return;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user