mirror of
https://github.com/immich-app/immich.git
synced 2025-01-04 10:56:47 +01:00
caf6c0996d
split up backup info box into separate widgets
44 lines
1.4 KiB
Dart
44 lines
1.4 KiB
Dart
import 'dart:io';
|
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:immich_mobile/extensions/build_context_extensions.dart';
|
|
import 'package:immich_mobile/widgets/backup/asset_info_table.dart';
|
|
import 'package:immich_mobile/widgets/backup/error_chip.dart';
|
|
import 'package:immich_mobile/widgets/backup/icloud_download_progress_bar.dart';
|
|
import 'package:immich_mobile/widgets/backup/upload_progress_bar.dart';
|
|
import 'package:immich_mobile/widgets/backup/upload_stats.dart';
|
|
|
|
class CurrentUploadingAssetInfoBox extends StatelessWidget {
|
|
const CurrentUploadingAssetInfoBox({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ListTile(
|
|
isThreeLine: true,
|
|
leading: Icon(
|
|
Icons.image_outlined,
|
|
color: context.primaryColor,
|
|
size: 30,
|
|
),
|
|
title: Row(
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
children: [
|
|
Text(
|
|
"backup_controller_page_uploading_file_info",
|
|
style: context.textTheme.titleSmall,
|
|
).tr(),
|
|
const BackupErrorChip(),
|
|
],
|
|
),
|
|
subtitle: Column(
|
|
children: [
|
|
if (Platform.isIOS) const IcloudDownloadProgressBar(),
|
|
const BackupUploadProgressBar(),
|
|
const BackupUploadStats(),
|
|
const BackupAssetInfoTable(),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|