MenuButton constructor
const
MenuButton({
- TextStyle textStyle = const TextStyle(color: Colors.black),
- String textOnOpen = "Close",
- String textOnClose = "Open",
- Color bgColor = Colors.white,
- IconData iconOnClose = Icons.menu,
- IconData iconOnOpen = Icons.close,
- Color iconColor = Colors.black,
- double borderRadius = 30,
- EdgeInsets padding = const EdgeInsets.symmetric(vertical: 3, horizontal: 15),
- double iconSize = 20,
Implementation
const MenuButton({
this.textStyle = const TextStyle(color: Colors.black),
this.textOnOpen = "Close",
this.textOnClose = "Open",
this.bgColor = Colors.white,
this.iconOnClose = Icons.menu,
this.iconOnOpen = Icons.close,
this.iconColor = Colors.black,
this.borderRadius = 30,
this.padding = const EdgeInsets.symmetric(vertical: 3, horizontal: 15),
this.iconSize = 20,
});