Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
kevin.zhang
2021-05-24 18:02:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
050ced103fd586901d90a6fc202efdec45594c5d
050ced10
1 parent
41c5726e
feat: #1462 Add padding to 'defaultDialog'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
lib/get_navigation/src/extension_navigation.dart
lib/get_navigation/src/extension_navigation.dart
View file @
050ced1
...
...
@@ -283,8 +283,10 @@ extension ExtensionDialog on GetInterface {
/// Custom UI Dialog.
Future
<
T
?>
defaultDialog
<
T
>({
String
title
=
"Alert"
,
EdgeInsetsGeometry
?
titlePadding
,
TextStyle
?
titleStyle
,
Widget
?
content
,
EdgeInsetsGeometry
?
contentPadding
,
VoidCallback
?
onConfirm
,
VoidCallback
?
onCancel
,
VoidCallback
?
onCustom
,
...
...
@@ -361,8 +363,8 @@ extension ExtensionDialog on GetInterface {
}
Widget
baseAlertDialog
=
AlertDialog
(
titlePadding:
EdgeInsets
.
all
(
8
),
contentPadding:
EdgeInsets
.
all
(
8
),
titlePadding:
titlePadding
??
EdgeInsets
.
all
(
8
),
contentPadding:
contentPadding
??
EdgeInsets
.
all
(
8
),
backgroundColor:
backgroundColor
??
theme
.
dialogBackgroundColor
,
shape:
RoundedRectangleBorder
(
...
...
Please
register
or
login
to post a comment