EasyDialog constructor

EasyDialog({
  1. Key? key,
  2. ImageProvider<Object>? topImage,
  3. Text? title,
  4. Text? description,
  5. bool closeButton = true,
  6. double height = 140,
  7. double width = 300,
  8. double cornerRadius = 8.0,
  9. double fogOpacity = 0.37,
  10. Color cardColor = const Color.fromRGBO(240, 240, 240, 1.0),
  11. List<Widget>? contentList,
  12. EdgeInsets? contentPadding = const EdgeInsets.fromLTRB(17.5, 12.0, 17.5, 13.0),
  13. EdgeInsets descriptionPadding = const EdgeInsets.all(0.0),
  14. EdgeInsets? titlePadding = const EdgeInsets.only(bottom: 12.0),
  15. CrossAxisAlignment contentListAlignment = CrossAxisAlignment.center,
})

Implementation

EasyDialog(
    {Key? key,
    this.topImage,
    this.title,
    this.description,
    this.closeButton = true,
    this.height = 140,
    this.width = 300,
    this.cornerRadius = 8.0,
    this.fogOpacity = 0.37,
    this.cardColor = const Color.fromRGBO(240, 240, 240, 1.0),
    this.contentList,
    this.contentPadding = const EdgeInsets.fromLTRB(17.5, 12.0, 17.5, 13.0),
    this.descriptionPadding = const EdgeInsets.all(0.0),
    this.titlePadding = const EdgeInsets.only(bottom: 12.0),
    this.contentListAlignment = CrossAxisAlignment.center})
    : assert(fogOpacity >= 0 && fogOpacity <= 1.0);