mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 10:49:11 -04:00 
			
		
		
		
	* refactor(mobile): entities * store entity * refactor: models * remove domain * save all * bad refactor
		
			
				
	
	
		
			15 lines
		
	
	
		
			444 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			444 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'package:flutter/material.dart';
 | |
| import 'package:immich_mobile/entities/asset.entity.dart';
 | |
| 
 | |
| /// Returns the suitable [IconData] to represent an [Asset]s storage location
 | |
| IconData storageIcon(Asset asset) {
 | |
|   switch (asset.storage) {
 | |
|     case AssetState.local:
 | |
|       return Icons.cloud_off_outlined;
 | |
|     case AssetState.remote:
 | |
|       return Icons.cloud_outlined;
 | |
|     case AssetState.merged:
 | |
|       return Icons.cloud_done_outlined;
 | |
|   }
 | |
| }
 |