forked from Cutlery/immich
		
	* styling light and dark theme * Icon topbar * Fixed app bar title dark theme * Fixed issue with getting thumbnail for things * Refactor sharing page * Refactor scroll thumb * Refactor chip in auto backup indiation button * Refactor sharing page * Added theme toggle * Up version for testflight build * Refactor backup controller page * Refactor album selection page * refactor album pages * Refactor gradient color profile header * Added theme switcher * Register app theme correctly * Added locale to the app * Added translation key * Styling for bottomsheet colors * up server version * Fixed font size * Fixed overlapsed sliverappbar on photos screen
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'package:flutter/material.dart';
 | |
| import 'package:hooks_riverpod/hooks_riverpod.dart';
 | |
| 
 | |
| class DisableMultiSelectButton extends ConsumerWidget {
 | |
|   const DisableMultiSelectButton({
 | |
|     Key? key,
 | |
|     required this.onPressed,
 | |
|     required this.selectedItemCount,
 | |
|   }) : super(key: key);
 | |
| 
 | |
|   final Function onPressed;
 | |
|   final int selectedItemCount;
 | |
| 
 | |
|   @override
 | |
|   Widget build(BuildContext context, WidgetRef ref) {
 | |
|     return Positioned(
 | |
|       top: 10,
 | |
|       left: 0,
 | |
|       child: Padding(
 | |
|         padding: const EdgeInsets.only(left: 16.0, top: 46),
 | |
|         child: Padding(
 | |
|           padding: const EdgeInsets.symmetric(horizontal: 4.0),
 | |
|           child: ElevatedButton.icon(
 | |
|             onPressed: () {
 | |
|               onPressed();
 | |
|             },
 | |
|             icon: const Icon(Icons.close_rounded),
 | |
|             label: Text(
 | |
|               '$selectedItemCount',
 | |
|               style: const TextStyle(
 | |
|                 fontWeight: FontWeight.w600,
 | |
|                 fontSize: 18,
 | |
|               ),
 | |
|             ),
 | |
|           ),
 | |
|         ),
 | |
|       ),
 | |
|     );
 | |
|   }
 | |
| }
 |