createActionButton method
Implementation
Widget createActionButton(context, String buttonText,
{Function? onDeleteFile}) {
return TextButton(
child: Text(buttonText),
onPressed: () =>
onDeleteFile != null ? onDeleteFile() : Navigator.of(context).pop(),
);
}