refactor: enhance documentation and fix punctuation in localization strings
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user