separated header

This commit is contained in:
hannathkadher
2024-11-23 18:55:32 +04:00
parent bca7aa059d
commit cb0abe751e
3 changed files with 196 additions and 173 deletions

View File

@ -24,7 +24,7 @@ void showDeleteConfirmationDialog(BuildContext context, VoidCallback onConfirm,
children: [
_buildWarningIcon(),
const SizedBox(height: 20),
_buildDialogTitle(context,title),
_buildDialogTitle(context, title),
const SizedBox(height: 10),
_buildDialogSubtitle(context, subtitle),
const SizedBox(height: 20),
@ -73,7 +73,7 @@ void showProcessingPopup(BuildContext context, bool isSpace, VoidCallback onDele
children: [
_buildWarningIcon(),
const SizedBox(height: 20),
_buildDialogTitle(context,title),
_buildDialogTitle(context, title),
const SizedBox(height: 10),
_buildDialogSubtitle(context, 'Are you sure you want to delete?'),
const SizedBox(height: 20),
@ -123,9 +123,7 @@ Widget _buildDialogSubtitle(BuildContext context, String subtitle) {
return Text(
subtitle,
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
color: ColorsManager.grayColor
),
style: Theme.of(context).textTheme.bodyMedium?.copyWith(color: ColorsManager.grayColor),
);
}