File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
2- "flutter": "3.27.2 ",
2+ "flutter": "3.27.3 ",
33 "flavors": {}
44}
Original file line number Diff line number Diff line change 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 ` .
Original file line number Diff line number Diff 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:
Original file line number Diff line number Diff 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.
1112Future <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) {
Original file line number Diff line number Diff line change 11name : layrz_theme
22description : Layrz standard theme library for Flutter, based on Material You (Material 3).
3- version : " 7.2.9 "
3+ version : " 7.2.10 "
44homepage : https://theme.layrz.com
55repository : https://github.com/goldenm-software/layrz_theme
66
You can’t perform that action at this time.
0 commit comments