mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:27:09 -05: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>
		
			
				
	
	
		
			42 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
import 'package:flutter/material.dart';
 | 
						|
import 'package:hooks_riverpod/hooks_riverpod.dart';
 | 
						|
import 'package:immich_mobile/extensions/build_context_extensions.dart';
 | 
						|
 | 
						|
class DisableMultiSelectButton extends ConsumerWidget {
 | 
						|
  const DisableMultiSelectButton({
 | 
						|
    super.key,
 | 
						|
    required this.onPressed,
 | 
						|
    required this.selectedItemCount,
 | 
						|
  });
 | 
						|
 | 
						|
  final Function onPressed;
 | 
						|
  final int selectedItemCount;
 | 
						|
 | 
						|
  @override
 | 
						|
  Widget build(BuildContext context, WidgetRef ref) {
 | 
						|
    return Align(
 | 
						|
      alignment: Alignment.topLeft,
 | 
						|
      child: Padding(
 | 
						|
        padding: const EdgeInsets.only(left: 16.0, top: 8.0),
 | 
						|
        child: Padding(
 | 
						|
          padding: const EdgeInsets.symmetric(horizontal: 4.0),
 | 
						|
          child: ElevatedButton.icon(
 | 
						|
            onPressed: () => onPressed(),
 | 
						|
            icon: Icon(
 | 
						|
              Icons.close_rounded,
 | 
						|
              color: context.colorScheme.onPrimary,
 | 
						|
            ),
 | 
						|
            label: Text(
 | 
						|
              '$selectedItemCount',
 | 
						|
              style: context.textTheme.titleMedium?.copyWith(
 | 
						|
                height: 2.5,
 | 
						|
                color: context.colorScheme.onPrimary,
 | 
						|
              ),
 | 
						|
            ),
 | 
						|
          ),
 | 
						|
        ),
 | 
						|
      ),
 | 
						|
    );
 | 
						|
  }
 | 
						|
}
 |