SmartNavStyle constructor

const SmartNavStyle({
  1. Color backgroundColor = Colors.white,
  2. Gradient? backgroundGradient,
  3. Color? borderColor,
  4. double borderRadius = 20.0,
  5. EdgeInsets margin = const EdgeInsets.symmetric(horizontal: 20, vertical: 20),
  6. EdgeInsets padding = const EdgeInsets.all(5),
  7. Color defaultActiveColor = const Color(0xFF101720),
  8. Color defaultInactiveColor = Colors.black54,
  9. TextStyle defaultActiveTextStyle = const TextStyle(fontSize: 12, fontWeight: FontWeight.w600),
  10. TextStyle defaultInactiveTextStyle = const TextStyle(fontSize: 12, color: Color(0xFFCCCCCC), fontWeight: FontWeight.w400),
  11. double defaultIconSize = 24.0,
  12. double scaleFactor = 1.1,
  13. Curve animationCurve = Curves.easeOutQuad,
  14. Duration animationDuration = const Duration(milliseconds: 300),
  15. bool showLabel = true,
})

Creates a SmartNavStyle with customizable properties. All parameters have sensible defaults for a basic navigation bar style.

Implementation

const SmartNavStyle({
  this.backgroundColor = Colors.white,
  this.backgroundGradient,
  this.borderColor,
  this.borderRadius = 20.0,
  this.margin = const EdgeInsets.symmetric(horizontal: 20, vertical: 20),
  this.padding = const EdgeInsets.all(5),
  this.defaultActiveColor = const Color(0xFF101720),
  this.defaultInactiveColor = Colors.black54,
  this.defaultActiveTextStyle = const TextStyle(
    fontSize: 12,
    fontWeight: FontWeight.w600,
  ),
  this.defaultInactiveTextStyle = const TextStyle(
    fontSize: 12,
    color: Color(0xFFCCCCCC),
    fontWeight: FontWeight.w400,
  ),
  this.defaultIconSize = 24.0,
  this.scaleFactor = 1.1,
  this.animationCurve = Curves.easeOutQuad,
  this.animationDuration = const Duration(milliseconds: 300),
  this.showLabel = true,
});