Set default button padding in confirm dialog
This commit is contained in:
@@ -230,7 +230,7 @@ class ConfirmDialogBuilder {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: _paddingButton ?? const EdgeInsetsDirectional.only(bottom: 16, start: 24, end: 24),
|
padding: _paddingButton ?? const EdgeInsetsDirectional.only(bottom: 16, start: 16, end: 16),
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
if (_cancelText.isNotEmpty)
|
if (_cancelText.isNotEmpty)
|
||||||
@@ -240,7 +240,7 @@ class ConfirmDialogBuilder {
|
|||||||
radius: _radiusButton,
|
radius: _radiusButton,
|
||||||
textStyle: _styleTextCancelButton,
|
textStyle: _styleTextCancelButton,
|
||||||
action: _onCancelButtonAction)),
|
action: _onCancelButtonAction)),
|
||||||
if (_confirmText.isNotEmpty && _cancelText.isNotEmpty) const SizedBox(width: 16),
|
if (_confirmText.isNotEmpty && _cancelText.isNotEmpty) const SizedBox(width: 8),
|
||||||
if (_confirmText.isNotEmpty)
|
if (_confirmText.isNotEmpty)
|
||||||
Expanded(child: _buildButton(
|
Expanded(child: _buildButton(
|
||||||
name: _confirmText,
|
name: _confirmText,
|
||||||
|
|||||||
Reference in New Issue
Block a user