SmartNavStyle constructor
const
SmartNavStyle({
- Color backgroundColor = Colors.white,
- Gradient? backgroundGradient,
- Color? borderColor,
- double borderRadius = 20.0,
- EdgeInsets margin = const EdgeInsets.symmetric(horizontal: 20, vertical: 20),
- EdgeInsets padding = const EdgeInsets.all(5),
- Color defaultActiveColor = const Color(0xFF101720),
- Color defaultInactiveColor = Colors.black54,
- TextStyle defaultActiveTextStyle = const TextStyle(fontSize: 12, fontWeight: FontWeight.w600),
- TextStyle defaultInactiveTextStyle = const TextStyle(fontSize: 12, color: Color(0xFFCCCCCC), fontWeight: FontWeight.w400),
- double defaultIconSize = 24.0,
- double scaleFactor = 1.1,
- Curve animationCurve = Curves.easeOutQuad,
- Duration animationDuration = const Duration(milliseconds: 300),
- 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,
});