mirror of
https://github.com/immich-app/immich.git
synced 2025-01-04 02:46:47 +01:00
43 lines
1.1 KiB
Dart
43 lines
1.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:immich_mobile/extensions/build_context_extensions.dart';
|
|
|
|
class AlbumActionFilledButton extends StatelessWidget {
|
|
final VoidCallback? onPressed;
|
|
final String labelText;
|
|
final IconData iconData;
|
|
|
|
const AlbumActionFilledButton({
|
|
super.key,
|
|
this.onPressed,
|
|
required this.labelText,
|
|
required this.iconData,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Padding(
|
|
padding: const EdgeInsets.only(right: 16.0),
|
|
child: FilledButton.icon(
|
|
style: FilledButton.styleFrom(
|
|
padding: const EdgeInsets.symmetric(vertical: 0, horizontal: 16),
|
|
shape: RoundedRectangleBorder(
|
|
borderRadius: BorderRadius.circular(25),
|
|
),
|
|
backgroundColor: context.colorScheme.surfaceContainerHigh,
|
|
),
|
|
icon: Icon(
|
|
iconData,
|
|
size: 18,
|
|
color: context.primaryColor,
|
|
),
|
|
label: Text(
|
|
labelText,
|
|
style: context.textTheme.labelMedium?.copyWith(
|
|
fontWeight: FontWeight.w600,
|
|
),
|
|
),
|
|
onPressed: onPressed,
|
|
),
|
|
);
|
|
}
|
|
}
|