NomoDialog constructor
const
NomoDialog({
- required Widget content,
- List<
Widget> ? actions, - String? title,
- bool? showCloseButton = true,
- double? elevation = 2,
- BorderRadiusGeometry? borderRadius,
- TextStyle? titleStyle,
- double? widthRatio,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- double? maxWidth,
- Color? backgroundColor,
- Widget? titleWidget,
- Widget? closeButton,
- Widget? contentSpacing,
- Widget? leading,
- bool scrollabe = false,
- bool centerTitle = true,
- Key? key,
Implementation
const NomoDialog({
required this.content,
this.actions,
this.title,
this.showCloseButton = true,
this.elevation = 2,
this.borderRadius,
this.titleStyle,
this.widthRatio,
this.padding,
this.margin,
this.maxWidth,
this.backgroundColor,
this.titleWidget,
this.closeButton,
this.contentSpacing,
this.leading,
this.scrollabe = false,
this.centerTitle = true,
super.key,
}) : assert(
titleWidget == null || title == null,
'title and titleWidget cannot be used together',
);