WIP: Bearbeiten und Löschen von Matches #171

Draft
flixcoo wants to merge 35 commits from feature/120-bearbeiten-und-loeschen-von-matches into development
Showing only changes of commit 1450e9b958 - Show all commits

View File

@@ -2,24 +2,24 @@ import 'package:flutter/material.dart';
class MainMenuButton extends StatefulWidget { class MainMenuButton extends StatefulWidget {
/// A button for the main menu with an optional icon and a press animation. /// 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. /// - [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({ const MainMenuButton({
super.key, super.key,
required this.icon,
required this.onPressed, required this.onPressed,
required this.icon,
this.text, this.text,
}); });
/// The text of the button. /// The callback to be invoked when the button is pressed.
final String? text; final void Function() onPressed;
/// The icon of the button. /// The icon of the button.
final IconData icon; final IconData icon;
/// The callback to be invoked when the button is pressed. /// The text of the button.
final void Function() onPressed; final String? text;
@override @override
State<MainMenuButton> createState() => _MainMenuButtonState(); State<MainMenuButton> createState() => _MainMenuButtonState();