25 lines
723 B
Dart
25 lines
723 B
Dart
import 'package:flutter/material.dart'
|
|
show TextButton, FloatingActionButton, Icons;
|
|
import 'package:flutter/widgets.dart';
|
|
|
|
import '../../l10n/app_localizations.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(AppLocalizations.of(context)!.cancel),
|
|
),
|
|
FloatingActionButton(onPressed: onSavePressed, child: Icon(Icons.save)),
|
|
],
|
|
);
|
|
}
|
|
}
|