NrButtonWidget constructor

const NrButtonWidget({
  1. Key? key,
  2. String? label,
  3. IconData? icon,
  4. dynamic onTap()?,
  5. bool expanded = false,
  6. bool selected = false,
  7. bool showSelected = true,
  8. double? width,
  9. double? height,
  10. Color? selectedColor,
  11. Color? selectedBackgroundColor,
  12. Color? unselectedColor,
  13. Color? unselectedBackgroundColor,
  14. BorderRadius? borderRadius,
  15. NavRailDirection direction = NavRailDirection.vertical,
  16. 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,
});