2022-04-23 21:08:45 -05:00
|
|
|
import 'package:flutter/material.dart';
|
2023-11-09 16:19:53 +00:00
|
|
|
import 'package:immich_mobile/extensions/build_context_extensions.dart';
|
2022-04-23 21:08:45 -05:00
|
|
|
|
2024-08-06 19:50:27 +05:30
|
|
|
class AlbumActionFilledButton extends StatelessWidget {
|
2022-04-23 21:08:45 -05:00
|
|
|
final VoidCallback? onPressed;
|
|
|
|
|
final String labelText;
|
|
|
|
|
final IconData iconData;
|
|
|
|
|
|
2025-07-29 00:34:03 +05:30
|
|
|
const AlbumActionFilledButton({super.key, this.onPressed, required this.labelText, required this.iconData});
|
2022-04-23 21:08:45 -05:00
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Padding(
|
2025-06-05 00:41:28 +07:00
|
|
|
padding: const EdgeInsets.only(right: 8.0),
|
2025-06-04 21:09:53 -05:00
|
|
|
child: OutlinedButton.icon(
|
|
|
|
|
style: OutlinedButton.styleFrom(
|
2024-08-06 14:39:07 -05:00
|
|
|
padding: const EdgeInsets.symmetric(vertical: 0, horizontal: 16),
|
2025-07-29 00:34:03 +05:30
|
|
|
shape: const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(20))),
|
|
|
|
|
side: BorderSide(color: context.colorScheme.surfaceContainerHighest, width: 1),
|
2024-08-06 19:50:27 +05:30
|
|
|
backgroundColor: context.colorScheme.surfaceContainerHigh,
|
2022-04-23 21:08:45 -05:00
|
|
|
),
|
2025-07-29 00:34:03 +05:30
|
|
|
icon: Icon(iconData, size: 18, color: context.primaryColor),
|
|
|
|
|
label: Text(labelText, style: context.textTheme.labelLarge?.copyWith()),
|
2022-04-23 21:08:45 -05:00
|
|
|
onPressed: onPressed,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|