From 1450e9b9584fcf67da8f77aa42d811275666bf81 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Sun, 18 Jan 2026 00:36:21 +0100 Subject: [PATCH] Updated attributes --- .../widgets/buttons/main_menu_button.dart | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/presentation/widgets/buttons/main_menu_button.dart b/lib/presentation/widgets/buttons/main_menu_button.dart index 417a296..c583456 100644 --- a/lib/presentation/widgets/buttons/main_menu_button.dart +++ b/lib/presentation/widgets/buttons/main_menu_button.dart @@ -2,24 +2,24 @@ import 'package:flutter/material.dart'; class MainMenuButton extends StatefulWidget { /// A button for the main menu with an optional icon and a press animation. - /// - [text]: The text of the button. - /// - [icon]: The icon of the button. /// - [onPressed]: The callback to be invoked when the button is pressed. + /// - [icon]: The icon of the button. + /// - [text]: The text of the button. const MainMenuButton({ super.key, - required this.icon, required this.onPressed, + required this.icon, this.text, }); - /// The text of the button. - final String? text; + /// The callback to be invoked when the button is pressed. + final void Function() onPressed; /// The icon of the button. final IconData icon; - /// The callback to be invoked when the button is pressed. - final void Function() onPressed; + /// The text of the button. + final String? text; @override State createState() => _MainMenuButtonState();