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)), ], ); } }