EasyDialog constructor
EasyDialog({
- Key? key,
- ImageProvider<
Object> ? topImage, - Text? title,
- Text? description,
- bool closeButton = true,
- double height = 140,
- double width = 300,
- double cornerRadius = 8.0,
- double fogOpacity = 0.37,
- Color cardColor = const Color.fromRGBO(240, 240, 240, 1.0),
- List<
Widget> ? contentList, - EdgeInsets? contentPadding = const EdgeInsets.fromLTRB(17.5, 12.0, 17.5, 13.0),
- EdgeInsets descriptionPadding = const EdgeInsets.all(0.0),
- EdgeInsets? titlePadding = const EdgeInsets.only(bottom: 12.0),
- 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);