mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Replace identicon with jdenticon
This commit is contained in:
		@@ -19,14 +19,13 @@ import 'package:comunic/ui/widgets/settings/header_spacer_section.dart';
 | 
			
		||||
import 'package:comunic/ui/widgets/settings/multi_choices_settings_tile.dart';
 | 
			
		||||
import 'package:comunic/ui/widgets/settings/text_settings_edit_tile.dart';
 | 
			
		||||
import 'package:comunic/utils/files_utils.dart';
 | 
			
		||||
import 'package:comunic/utils/identicon_utils.dart';
 | 
			
		||||
import 'package:comunic/utils/input_utils.dart';
 | 
			
		||||
import 'package:comunic/utils/intl_utils.dart';
 | 
			
		||||
import 'package:comunic/utils/log_utils.dart';
 | 
			
		||||
import 'package:comunic/utils/ui_utils.dart';
 | 
			
		||||
import 'package:flutter/material.dart';
 | 
			
		||||
import 'package:flutter_settings_ui/flutter_settings_ui.dart';
 | 
			
		||||
import 'package:identicon/identicon.dart';
 | 
			
		||||
import 'package:random_string/random_string.dart';
 | 
			
		||||
 | 
			
		||||
/// Groups settings screen
 | 
			
		||||
///
 | 
			
		||||
@@ -313,12 +312,12 @@ class _GroupSettingsScreenState extends SafeState<GroupSettingsScreen> {
 | 
			
		||||
            )
 | 
			
		||||
            .toList()
 | 
			
		||||
            .cast<SettingsTile>()
 | 
			
		||||
              ..add(
 | 
			
		||||
                SettingsTile(
 | 
			
		||||
                  title: tr("Create a new conversation"),
 | 
			
		||||
                  onPressed: _createNewGroupConversation,
 | 
			
		||||
                ),
 | 
			
		||||
              ),
 | 
			
		||||
          ..add(
 | 
			
		||||
            SettingsTile(
 | 
			
		||||
              title: tr("Create a new conversation"),
 | 
			
		||||
              onPressed: _createNewGroupConversation,
 | 
			
		||||
            ),
 | 
			
		||||
          ),
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
  void _createNewGroupConversation(BuildContext context) async {
 | 
			
		||||
@@ -432,8 +431,7 @@ class _GroupSettingsScreenState extends SafeState<GroupSettingsScreen> {
 | 
			
		||||
  /// Generate a new random logo for the group
 | 
			
		||||
  void _generateRandomLogo() async {
 | 
			
		||||
    try {
 | 
			
		||||
      final newLogo =
 | 
			
		||||
          Identicon(rows: 10, cols: 10).generate(randomString(20), size: 100);
 | 
			
		||||
      final newLogo = await genIdenticon(context);
 | 
			
		||||
      await _doUploadLogo(newLogo);
 | 
			
		||||
    } catch (e, stack) {
 | 
			
		||||
      print("Could not generate new logo! $e\n$stack");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user