added abilty to edit and delete collections
This commit is contained in:
22
lib/widgets/edit_dialog_widgets/edit_dialog_actions.dart
Normal file
22
lib/widgets/edit_dialog_widgets/edit_dialog_actions.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
import 'package:flutter/material.dart'
|
||||
show TextButton, FloatingActionButton, Icons;
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
||||
class EditDialogActions extends StatelessWidget {
|
||||
const EditDialogActions({super.key, required this.onSavePressed});
|
||||
final VoidCallback onSavePressed;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
TextButton(
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
child: Text('Cancel'),
|
||||
),
|
||||
FloatingActionButton(onPressed: onSavePressed, child: Icon(Icons.save)),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user