Updated doc strings
This commit is contained in:
@@ -1,17 +1,13 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:game_tracker/core/custom_theme.dart';
|
||||
|
||||
/// A custom alert dialog widget that follows the application's design theme.
|
||||
///
|
||||
/// 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 {
|
||||
/// A custom alert dialog widget that provides a os unspecific AlertDialog,
|
||||
/// with consistent colors, borders, and layout that match the app's custom theme.
|
||||
/// - [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.
|
||||
const CustomAlertDialog({
|
||||
super.key,
|
||||
required this.title,
|
||||
@@ -26,8 +22,11 @@ class CustomAlertDialog extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AlertDialog(
|
||||
title: Text(title, style: const TextStyle(color: CustomTheme.textColor,),),
|
||||
content: Text(content, style: const TextStyle(color: CustomTheme.textColor),),
|
||||
title: Text(title, style: const TextStyle(color: CustomTheme.textColor)),
|
||||
content: Text(
|
||||
content,
|
||||
style: const TextStyle(color: CustomTheme.textColor),
|
||||
),
|
||||
actions: actions,
|
||||
backgroundColor: CustomTheme.boxColor,
|
||||
actionsAlignment: MainAxisAlignment.spaceAround,
|
||||
|
||||
Reference in New Issue
Block a user