DialogTheme constructor

const DialogTheme({
  1. Color backgroundColor = const Color.fromRGBO(38, 39, 47, 0.75),
  2. Color barrierColor = const Color.fromRGBO(0, 0, 0, 0.35),
  3. Duration openCloseAnimationDuration = const Duration(milliseconds: 150),
  4. Curve openCloseAnimationCurve = Curves.easeInOutSine,
  5. Offset openCloseAnimationOffset = const Offset(0.0, -16.0),
  6. Alignment alignment = Alignment.center,
  7. double blurRadius = 16.0,
  8. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(5.0)),
  9. Color borderColor = const Color.fromRGBO(255, 255, 255, 0.025),
  10. 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))],
  11. EdgeInsets padding = const EdgeInsets.all(8.0),
  12. double actionButtonHeight = 32.0,
  13. Color actionButtonSectionBackgroundColor = const Color.fromRGBO(16, 18, 21, 0.5),
  14. double baseActionButtonRowWidth = 192.0,
  15. double customDialogActionButtonWidthAddition = 32.0,
  16. 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,
});