0 purchases
toggle bar
toggle_bar #
A dart package to display a horizontal bar of customisable toggle tabs. Supports iOS and Android.
Installation #
Depend on it.
dependencies:
toggle_bar: ^1.0.0
copied to clipboard
Usage #
import 'package:toggle_bar/toggle_bar.dart';
ToggleBar(
labels: ["Apples", "Bananas", "Oranges", "Watermelons"],
onSelectionUpdated: (index) => // Do something with index
)
copied to clipboard
Parameters #
@required List<String> labels;
Color backgroundColor;
Color selectedTabColor;
Color selectedTextColor;
Color textColor;
BoxBorder backgroundBorder;
TextStyle labelTextStyle;
Function(int) onSelectionUpdated;
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.