LiquidToggleBar constructor

LiquidToggleBar({
  1. required List<String> tabsNames,
  2. Color backgroundColor = Colors.grey,
  3. Color selectedTabColor = Colors.orangeAccent,
  4. Color tabColor = Colors.orange,
  5. Color selectedTextColor = Colors.white,
  6. Color textColor = Colors.white,
  7. dynamic onSelectionUpdated(
    1. int
    )?,
  8. double borderRadius = 12,
})

this is the main class to call.

Implementation

LiquidToggleBar(
    {required this.tabsNames,
    this.backgroundColor = Colors.grey,
    this.selectedTabColor = Colors.orangeAccent,
    this.tabColor = Colors.orange,
    this.selectedTextColor = Colors.white,
    this.textColor = Colors.white,
    this.onSelectionUpdated,
    this.borderRadius = 12});