Skip to content

Commit f7c281e

Browse files
authored
Merge pull request #90 from goldenm-software/development
7.2.10
2 parents fad0a8f + 7422708 commit f7c281e

5 files changed

Lines changed: 17 additions & 3 deletions

File tree

.fvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"flutter": "3.27.2",
2+
"flutter": "3.27.3",
33
"flavors": {}
44
}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 7.2.10
4+
5+
- Added `customTitle` and `customContent` options to `deleteConfirmationDialog`.
6+
37
## 7.2.9
48

59
- Fixed `ThemedTable` to use the correct ellipsis on `richTextBuilder`.

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ packages:
350350
path: ".."
351351
relative: true
352352
source: path
353-
version: "7.2.9"
353+
version: "7.2.10"
354354
leak_tracker:
355355
dependency: transitive
356356
description:

lib/src/scaffolds/src/utilities.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@ part of '../scaffolds.dart';
88
/// - actions.confirmation.confirm
99
/// - actions.confirmationMultiple.title
1010
/// - actions.confirmationMultiple.content
11+
/// If the content is to be customized without i18n, use the customTitle and customContent parameters.
1112
Future<bool> deleteConfirmationDialog({
1213
required BuildContext context,
1314
bool isMultiple = false,
1415
bool isLoading = false,
1516
bool isCooldown = false,
1617
VoidCallback? onCooldown,
18+
String? customTitle,
19+
String? customContent,
1720
}) async {
1821
LayrzAppLocalizations? i18n = LayrzAppLocalizations.maybeOf(context);
1922

@@ -28,6 +31,13 @@ Future<bool> deleteConfirmationDialog({
2831
content = i18n?.t('actions.confirmation.content') ?? 'Once deleted, you will not be able to recover it.';
2932
}
3033

34+
if (customTitle != null) {
35+
title = customTitle;
36+
}
37+
if (customContent != null) {
38+
content = customContent;
39+
}
40+
3141
bool? result = await showDialog(
3242
context: context,
3343
builder: (context) {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: layrz_theme
22
description: Layrz standard theme library for Flutter, based on Material You (Material 3).
3-
version: "7.2.9"
3+
version: "7.2.10"
44
homepage: https://theme.layrz.com
55
repository: https://github.com/goldenm-software/layrz_theme
66

0 commit comments

Comments
 (0)