toggle_bar_button 0.0.1 copy "toggle_bar_button: ^0.0.1" to clipboard
toggle_bar_button: ^0.0.1 copied to clipboard

outdated

A dart package to display a horizontal bar of customisable toggle tabs. Supports iOS and Android.

Installation #

Depend on it.

dependencies:
  toggle_bar: ^0.0.1

Usage #

import 'package:toggle_bar_button/toggle_bar_button.dart';

ToggleBarButton(
    tabItems: ["Apples", 'Bananas', 'Oranges', 'Papayas'],
    tabContentItems: <Widget>[
        Center(child: Text('Apples')),
        Center(child: Text('Bananas')),
        Center(child: Text('Oranges')),
        Center(child: Text('Papayas')),
    ],
)

Parameters #

@required final List<String> tabItems;
@required final List<Widget> tabContentItems;
final int index;
final Color backgroundColor;
final Color textColor;
final Color selectedBackgroundColor;
final Color selectedTextColor;
final Color borderColor;
final double borderWidth;
final double radius;
15
likes
30
pub points
59%
popularity

Publisher

unverified uploader

A dart package to display a horizontal bar of customisable toggle tabs. Supports iOS and Android.

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on toggle_bar_button