toggle_bar 1.0.0 copy "toggle_bar: ^1.0.0" to clipboard
toggle_bar: ^1.0.0 copied to clipboard

A horizontal bar of toggle tabs with customisable colors and labels.

toggle_bar #

pub package Build Status

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

Usage #

import 'package:toggle_bar/toggle_bar.dart';

ToggleBar(
  labels: ["Apples", "Bananas", "Oranges", "Watermelons"],
  onSelectionUpdated: (index) => // Do something with index
  )

Parameters #

@required List<String> labels;
Color backgroundColor;
Color selectedTabColor;
Color selectedTextColor;
Color textColor;
BoxBorder backgroundBorder;
TextStyle labelTextStyle;
Function(int) onSelectionUpdated;
44
likes
40
points
65
downloads

Publisher

unverified uploader

Weekly Downloads

A horizontal bar of toggle tabs with customisable colors and labels.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on toggle_bar