ModalLayout constructor
const
ModalLayout({
- Key? key,
- required Widget body,
- EdgeInsetsGeometry padding = const EdgeInsets.only(left: 20, right: 20, top: 20),
- Color backgroundColor = Colors.grey,
- bool showCloseButton = true,
Implementation
const ModalLayout({
super.key,
required this.body,
this.padding = const EdgeInsets.only(left: 20, right: 20, top: 20),
this.backgroundColor = Colors.grey,
this.showCloseButton = true,
});