mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 11:07:10 -05:00 
			
		
		
		
	* chore: bump dart sdk to 3.8 * chore: make build * make pigeon * chore: format files --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
		
			
				
	
	
		
			23 lines
		
	
	
		
			769 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			769 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
import 'package:easy_localization/easy_localization.dart';
 | 
						|
import 'package:flutter/material.dart';
 | 
						|
import 'package:hooks_riverpod/hooks_riverpod.dart';
 | 
						|
import 'package:immich_mobile/constants/colors.dart';
 | 
						|
import 'package:immich_mobile/providers/backup/error_backup_list.provider.dart';
 | 
						|
 | 
						|
class BackupErrorChipText extends ConsumerWidget {
 | 
						|
  const BackupErrorChipText({super.key});
 | 
						|
 | 
						|
  @override
 | 
						|
  Widget build(BuildContext context, WidgetRef ref) {
 | 
						|
    final count = ref.watch(errorBackupListProvider).length;
 | 
						|
    if (count == 0) {
 | 
						|
      return const SizedBox();
 | 
						|
    }
 | 
						|
 | 
						|
    return const Text(
 | 
						|
      "backup_controller_page_failed",
 | 
						|
      style: TextStyle(color: red400, fontWeight: FontWeight.bold, fontSize: 11),
 | 
						|
    ).tr(namedArgs: {'count': count.toString()});
 | 
						|
  }
 | 
						|
}
 |