mirror of
https://github.com/immich-app/immich.git
synced 2025-10-19 04:50:43 -04: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>
27 lines
1.0 KiB
Dart
27 lines
1.0 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:immich_mobile/domain/models/exif.model.dart';
|
|
import 'package:immich_mobile/extensions/build_context_extensions.dart';
|
|
|
|
class CameraInfo extends StatelessWidget {
|
|
final ExifInfo exifInfo;
|
|
|
|
const CameraInfo({super.key, required this.exifInfo});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final textColor = context.isDarkTheme ? Colors.white : Colors.black;
|
|
return ListTile(
|
|
contentPadding: const EdgeInsets.all(0),
|
|
dense: true,
|
|
leading: Icon(Icons.camera, color: textColor.withAlpha(200)),
|
|
title: Text("${exifInfo.make} ${exifInfo.model}", style: context.textTheme.labelLarge),
|
|
subtitle: exifInfo.f != null || exifInfo.exposureSeconds != null || exifInfo.mm != null || exifInfo.iso != null
|
|
? Text(
|
|
"ƒ/${exifInfo.fNumber} ${exifInfo.exposureTime} ${exifInfo.focalLength} mm ISO ${exifInfo.iso ?? ''} ",
|
|
style: context.textTheme.bodySmall,
|
|
)
|
|
: null,
|
|
);
|
|
}
|
|
}
|