DialogTheme constructor
const
DialogTheme({
- Color backgroundColor = const Color.fromRGBO(38, 39, 47, 0.75),
- Color barrierColor = const Color.fromRGBO(0, 0, 0, 0.35),
- Duration openCloseAnimationDuration = const Duration(milliseconds: 150),
- Curve openCloseAnimationCurve = Curves.easeInOutSine,
- Offset openCloseAnimationOffset = const Offset(0.0, -16.0),
- Alignment alignment = Alignment.center,
- double blurRadius = 16.0,
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(5.0)),
- Color borderColor = const Color.fromRGBO(255, 255, 255, 0.025),
- List<
BoxShadow> shadow = const [BoxShadow(blurRadius: 8.0, color: Color.fromRGBO(0, 0, 0, 0.25), spreadRadius: 4.0, offset: Offset(0.0, 4.0))], - EdgeInsets padding = const EdgeInsets.all(8.0),
- double actionButtonHeight = 32.0,
- Color actionButtonSectionBackgroundColor = const Color.fromRGBO(16, 18, 21, 0.5),
- double baseActionButtonRowWidth = 192.0,
- double customDialogActionButtonWidthAddition = 32.0,
- double distanceBetweenContentAndActionButtons = 8.0,
Implementation
const DialogTheme({
this.backgroundColor = const Color.fromRGBO(38, 39, 47, 0.75),
this.barrierColor = const Color.fromRGBO(0, 0, 0, 0.35),
this.openCloseAnimationDuration = const Duration(milliseconds: 150),
this.openCloseAnimationCurve = Curves.easeInOutSine,
this.openCloseAnimationOffset = const Offset(0.0, -16.0),
this.alignment = Alignment.center,
this.blurRadius = 16.0,
this.borderRadius = const BorderRadius.all(Radius.circular(5.0)),
this.borderColor = const Color.fromRGBO(255, 255, 255, 0.025),
this.shadow = const [
BoxShadow(
blurRadius: 8.0,
color: Color.fromRGBO(0, 0, 0, 0.25),
spreadRadius: 4.0,
offset: Offset(0.0, 4.0),
),
],
this.padding = const EdgeInsets.all(8.0),
this.actionButtonHeight = 32.0,
this.actionButtonSectionBackgroundColor =
const Color.fromRGBO(16, 18, 21, 0.5),
this.baseActionButtonRowWidth = 192.0,
this.customDialogActionButtonWidthAddition = 32.0,
this.distanceBetweenContentAndActionButtons = 8.0,
});