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

outdated

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

toggle_bar_button #

pub package

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

Installation #

Depend on it.

dependencies:
  toggle_bar_button: ^1.0.0

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
40
pub points
59%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on toggle_bar_button