mirror of
https://github.com/immich-app/immich.git
synced 2024-12-24 10:37:28 +02:00
acf099e481
* chore: added overpass font * Setting page * style: app bar dialog * style: backup controller and album selection page * style: asset grid * blanket fix * blanket fix * remove description input for local only asset * revert * merge main * style: search page * sharing page * text size in sharing page * style: library page * library page * album page + album creation page * Navigationbar * style: minor * update * album bottom sheet * album option page * minor style fix * remove unused fonts * remove fonts in pubspec
61 lines
1.6 KiB
Dart
61 lines
1.6 KiB
Dart
import 'package:easy_localization/easy_localization.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:immich_mobile/extensions/build_context_extensions.dart';
|
|
|
|
class BackupInfoCard extends StatelessWidget {
|
|
final String title;
|
|
final String subtitle;
|
|
final String info;
|
|
const BackupInfoCard({
|
|
Key? key,
|
|
required this.title,
|
|
required this.subtitle,
|
|
required this.info,
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Card(
|
|
shape: RoundedRectangleBorder(
|
|
borderRadius: BorderRadius.circular(20), // if you need this
|
|
side: BorderSide(
|
|
color: context.isDarkTheme
|
|
? const Color.fromARGB(255, 56, 56, 56)
|
|
: Colors.black12,
|
|
width: 1,
|
|
),
|
|
),
|
|
elevation: 0,
|
|
borderOnForeground: false,
|
|
child: ListTile(
|
|
minVerticalPadding: 18,
|
|
isThreeLine: true,
|
|
title: Text(
|
|
title,
|
|
style: context.textTheme.titleMedium,
|
|
),
|
|
subtitle: Padding(
|
|
padding: const EdgeInsets.only(top: 4.0, right: 18.0),
|
|
child: Text(
|
|
subtitle,
|
|
style: context.textTheme.bodyMedium,
|
|
),
|
|
),
|
|
trailing: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Text(
|
|
info,
|
|
style: context.textTheme.titleLarge,
|
|
),
|
|
Text(
|
|
"backup_info_card_assets",
|
|
style: context.textTheme.labelLarge,
|
|
).tr(),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|