GlassBottomBar constructor
const
GlassBottomBar({
- Key? key,
- required List<
GlassBottomBarItem> items, - int currentIndex = 0,
- dynamic onTap()?,
- Color? selectedItemColor,
- Color? unselectedItemColor,
- double? selectedColorOpacity,
- ShapeBorder itemShape = const StadiumBorder(),
- EdgeInsets margin = const EdgeInsets.all(8),
- EdgeInsets itemPadding = const EdgeInsets.symmetric(vertical: 10, horizontal: 16),
- Duration duration = const Duration(milliseconds: 500),
- Curve curve = Curves.easeOutQuint,
Implementation
const GlassBottomBar({
Key? key,
required this.items,
this.currentIndex = 0,
this.onTap,
this.selectedItemColor,
this.unselectedItemColor,
this.selectedColorOpacity,
this.itemShape = const StadiumBorder(),
this.margin = const EdgeInsets.all(8),
this.itemPadding = const EdgeInsets.symmetric(vertical: 10, horizontal: 16),
this.duration = const Duration(milliseconds: 500),
this.curve = Curves.easeOutQuint,
}) : super(key: key);