refactor: enhance documentation and fix punctuation in localization strings
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m3s
Pull Request Pipeline / lint (pull_request) Successful in 2m9s

This commit is contained in:
2026-01-13 21:16:59 +01:00
parent 4161e1e88b
commit 82ad2b74f8
7 changed files with 21 additions and 21 deletions

View File

@@ -4,18 +4,18 @@ import 'package:game_tracker/core/custom_theme.dart';
/// A custom animated button widget that provides a scaling and opacity effect
/// when pressed. This widget is designed to be used in dialogs or other UI
/// components where a visually appealing button is required.
///
/// Parameters:
/// - [onPressed]: Callback function that is triggered when the button is pressed.
/// - [child]: The child widget to be displayed inside the button, typically a text or icon.
class AnimatedDialogButton extends StatefulWidget {
const AnimatedDialogButton({super.key, required this.onPressed, required this.child});
/// Callback function that is triggered when the button is pressed.
final VoidCallback onPressed;
/// The child widget to be displayed inside the button, typically a text or icon.
final Widget child;
/// Creates an instance of `AnimatedDialogButton`.
///
/// The [onPressed] and [child] parameters are required.
const AnimatedDialogButton({super.key, required this.onPressed, required this.child});
@override
State<AnimatedDialogButton> createState() => _AnimatedDialogButtonState();
}

View File

@@ -5,17 +5,13 @@ import 'package:game_tracker/core/custom_theme.dart';
///
/// This widget provides a styled alternative to the default Flutter AlertDialog,
/// with consistent colors, borders, and layout that match the app's custom theme.
///
/// Parameters:
/// - [title]: The title text displayed at the top of the dialog.
/// - [content]: The main content text displayed in the body of the dialog.
/// - [actions]: A list of action widgets (typically buttons) displayed at the bottom
/// of the dialog. These actions are horizontally spaced around the dialog's width.
class CustomAlertDialog extends StatelessWidget {
/// The title text displayed at the top of the dialog.
final String title;
/// The main content text displayed in the body of the dialog.
final String content;
/// A list of action widgets (typically buttons) displayed at the bottom of the dialog.
/// These actions are horizontally spaced around the dialog's width.
final List<Widget> actions;
const CustomAlertDialog({
super.key,
required this.title,
@@ -23,6 +19,10 @@ class CustomAlertDialog extends StatelessWidget {
required this.actions,
});
final String title;
final String content;
final List<Widget> actions;
@override
Widget build(BuildContext context) {
return AlertDialog(