Implemented MatchProfileView

This commit is contained in:
2026-01-18 00:08:39 +01:00
parent 9ce2ca0ceb
commit 374c9295ef
9 changed files with 349 additions and 19 deletions

View File

@@ -7,16 +7,16 @@ class MainMenuButton extends StatefulWidget {
/// - [onPressed]: The callback to be invoked when the button is pressed.
const MainMenuButton({
super.key,
required this.text,
this.icon,
required this.icon,
required this.onPressed,
this.text,
});
/// The text of the button.
final String text;
final String? text;
/// The icon of the button.
final IconData? icon;
final IconData icon;
/// The callback to be invoked when the button is pressed.
final void Function() onPressed;
@@ -71,18 +71,18 @@ class _MainMenuButtonState extends State<MainMenuButton>
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
children: [
if (widget.icon != null) ...[
Icon(widget.icon, size: 26, color: Colors.black),
Icon(widget.icon, size: 26, color: Colors.black),
if (widget.text != null) ...[
const SizedBox(width: 7),
],
Text(
widget.text,
style: const TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
color: Colors.black,
Text(
widget.text!,
style: const TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
color: Colors.black,
),
),
),
],
],
),
),