mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 02:27:08 -04:00 
			
		
		
		
	* feat(mobile): add support for material themes Added support for custom theming and updated all elements accordingly. * fix(mobile): Restored immich brand colors to default theme * fix(mobile): make ListTile titles bold in settings main page * feat(mobile): update bottom nav and appbar colors * small tweaks --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
		
			
				
	
	
		
			38 lines
		
	
	
		
			928 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			928 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'package:flutter/material.dart';
 | |
| import 'package:immich_mobile/extensions/build_context_extensions.dart';
 | |
| import 'package:immich_mobile/extensions/theme_extensions.dart';
 | |
| 
 | |
| class ThumbnailPlaceholder extends StatelessWidget {
 | |
|   final EdgeInsets margin;
 | |
|   final double width;
 | |
|   final double height;
 | |
| 
 | |
|   const ThumbnailPlaceholder({
 | |
|     super.key,
 | |
|     this.margin = EdgeInsets.zero,
 | |
|     this.width = 250,
 | |
|     this.height = 250,
 | |
|   });
 | |
| 
 | |
|   @override
 | |
|   Widget build(BuildContext context) {
 | |
|     var gradientColors = [
 | |
|       context.colorScheme.surfaceContainer,
 | |
|       context.colorScheme.surfaceContainer.darken(amount: .1),
 | |
|     ];
 | |
| 
 | |
|     return Container(
 | |
|       width: width,
 | |
|       height: height,
 | |
|       margin: margin,
 | |
|       decoration: BoxDecoration(
 | |
|         gradient: LinearGradient(
 | |
|           colors: gradientColors,
 | |
|           begin: Alignment.topCenter,
 | |
|           end: Alignment.bottomCenter,
 | |
|         ),
 | |
|       ),
 | |
|     );
 | |
|   }
 | |
| }
 |