NrButtonWidget constructor
const
NrButtonWidget({
- Key? key,
- String? label,
- IconData? icon,
- dynamic onTap()?,
- bool expanded = false,
- bool selected = false,
- bool showSelected = true,
- double? width,
- double? height,
- Color? selectedColor,
- Color? selectedBackgroundColor,
- Color? unselectedColor,
- Color? unselectedBackgroundColor,
- BorderRadius? borderRadius,
- NavRailDirection direction = NavRailDirection.vertical,
- NavRailButtonLabelPosition labelPosition = NavRailButtonLabelPosition.bottom,
Implementation
const NrButtonWidget({
super.key,
this.label,
this.icon,
this.onTap,
this.expanded = false,
this.selected = false,
this.showSelected = true,
this.width,
this.height,
this.selectedColor,
this.selectedBackgroundColor,
this.unselectedColor,
this.unselectedBackgroundColor,
this.borderRadius,
this.direction = NavRailDirection.vertical,
this.labelPosition = NavRailButtonLabelPosition.bottom,
});