Committed by
GitHub
Merge pull request #1465 from KevinZhang19870314/master
feat: #1462 Add padding to 'defaultDialog'
Showing
1 changed file
with
4 additions
and
2 deletions
| @@ -283,8 +283,10 @@ extension ExtensionDialog on GetInterface { | @@ -283,8 +283,10 @@ extension ExtensionDialog on GetInterface { | ||
| 283 | /// Custom UI Dialog. | 283 | /// Custom UI Dialog. | 
| 284 | Future<T?> defaultDialog<T>({ | 284 | Future<T?> defaultDialog<T>({ | 
| 285 | String title = "Alert", | 285 | String title = "Alert", | 
| 286 | + EdgeInsetsGeometry? titlePadding, | ||
| 286 | TextStyle? titleStyle, | 287 | TextStyle? titleStyle, | 
| 287 | Widget? content, | 288 | Widget? content, | 
| 289 | + EdgeInsetsGeometry? contentPadding, | ||
| 288 | VoidCallback? onConfirm, | 290 | VoidCallback? onConfirm, | 
| 289 | VoidCallback? onCancel, | 291 | VoidCallback? onCancel, | 
| 290 | VoidCallback? onCustom, | 292 | VoidCallback? onCustom, | 
| @@ -361,8 +363,8 @@ extension ExtensionDialog on GetInterface { | @@ -361,8 +363,8 @@ extension ExtensionDialog on GetInterface { | ||
| 361 | } | 363 | } | 
| 362 | 364 | ||
| 363 | Widget baseAlertDialog = AlertDialog( | 365 | Widget baseAlertDialog = AlertDialog( | 
| 364 | - titlePadding: EdgeInsets.all(8), | ||
| 365 | - contentPadding: EdgeInsets.all(8), | 366 | + titlePadding: titlePadding ?? EdgeInsets.all(8), | 
| 367 | + contentPadding: contentPadding ?? EdgeInsets.all(8), | ||
| 366 | 368 | ||
| 367 | backgroundColor: backgroundColor ?? theme.dialogBackgroundColor, | 369 | backgroundColor: backgroundColor ?? theme.dialogBackgroundColor, | 
| 368 | shape: RoundedRectangleBorder( | 370 | shape: RoundedRectangleBorder( | 
- 
Please register or login to post a comment