address book complete

This commit is contained in:
Stephan D
2025-12-05 10:27:55 +01:00
parent e854963fa6
commit 5e49ee3244
10 changed files with 72 additions and 27 deletions

View File

@@ -2,18 +2,22 @@ import 'package:flutter/material.dart';
class RecipientActions extends StatelessWidget {
final VoidCallback onEdit;
final VoidCallback onDelete;
final VoidCallback? onEdit;
final VoidCallback? onDelete;
const RecipientActions({super.key, required this.onEdit, required this.onDelete});
@override
Widget build(BuildContext context) {
return Row(
children: [
IconButton(icon: Icon(Icons.edit, color: Theme.of(context).colorScheme.primary), onPressed: onEdit),
IconButton(icon: Icon(Icons.delete, color: Theme.of(context).colorScheme.error), onPressed: onDelete),
],
);
}
Widget build(BuildContext context) => Row(
children: [
IconButton(
icon: Icon(Icons.edit, color: Theme.of(context).colorScheme.primary),
onPressed: onEdit,
),
IconButton(
icon: Icon(Icons.delete, color: Theme.of(context).colorScheme.error),
onPressed: onDelete,
),
],
);
}