From 15702a108dac210ed4548a3a64abca71c95297da Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Sun, 19 Apr 2026 15:18:27 +0200 Subject: [PATCH] Add: custom dialog action --- .../widgets/dialog/custom_dialog_action.dart | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 lib/presentation/widgets/dialog/custom_dialog_action.dart diff --git a/lib/presentation/widgets/dialog/custom_dialog_action.dart b/lib/presentation/widgets/dialog/custom_dialog_action.dart new file mode 100644 index 0000000..dbf47f4 --- /dev/null +++ b/lib/presentation/widgets/dialog/custom_dialog_action.dart @@ -0,0 +1,29 @@ +import 'package:flutter/cupertino.dart'; +import 'package:tallee/core/enums.dart'; +import 'package:tallee/presentation/widgets/dialog/animated_dialog_button.dart'; + +class CustomDialogAction extends StatelessWidget { + const CustomDialogAction({ + super.key, + required this.onPressed, + required this.text, + this.buttonType = ButtonType.primary, + }); + + // The text displaed on the button + final String text; + + // The type of the button, which determines its styling + final ButtonType buttonType; + + final VoidCallback onPressed; + + @override + Widget build(BuildContext context) { + return AnimatedDialogButton( + onPressed: onPressed, + text: text, + buttonType: buttonType, + ); + } +}