mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	Implemented user profile upload and show on web/mobile (#191)
* Update mobile dependencies * Added image picker * Added mechanism to upload profile image * Added image type to send to web * Added styling for circle avatar * Fixxed issue with sharp cannot resize image properly * Finished displaying and uploading user profile * Added user profile to web
This commit is contained in:
		| @@ -38,5 +38,7 @@ class HiveBackupAlbumsAdapter extends TypeAdapter<HiveBackupAlbums> { | ||||
|   @override | ||||
|   bool operator ==(Object other) => | ||||
|       identical(this, other) || | ||||
|       other is HiveBackupAlbumsAdapter && runtimeType == other.runtimeType && typeId == other.typeId; | ||||
|       other is HiveBackupAlbumsAdapter && | ||||
|           runtimeType == other.runtimeType && | ||||
|           typeId == other.typeId; | ||||
| } | ||||
|   | ||||
| @@ -45,12 +45,16 @@ class BackupControllerPage extends HookConsumerWidget { | ||||
|           child: Column( | ||||
|             crossAxisAlignment: CrossAxisAlignment.start, | ||||
|             children: [ | ||||
|               LinearPercentIndicator( | ||||
|               Padding( | ||||
|                 padding: const EdgeInsets.only(top: 8.0), | ||||
|                 lineHeight: 5.0, | ||||
|                 percent: backupState.serverInfo.diskUsagePercentage / 100.0, | ||||
|                 backgroundColor: Colors.grey, | ||||
|                 progressColor: Theme.of(context).primaryColor, | ||||
|                 child: LinearPercentIndicator( | ||||
|                   padding: const EdgeInsets.symmetric(horizontal: 0, vertical: 0), | ||||
|                   barRadius: const Radius.circular(2), | ||||
|                   lineHeight: 6.0, | ||||
|                   percent: backupState.serverInfo.diskUsagePercentage / 100.0, | ||||
|                   backgroundColor: Colors.grey, | ||||
|                   progressColor: Theme.of(context).primaryColor, | ||||
|                 ), | ||||
|               ), | ||||
|               Padding( | ||||
|                 padding: const EdgeInsets.only(top: 12.0), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user