toggle_bar_button 1.0.1
toggle_bar_button: ^1.0.1 copied to clipboard

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;
9
likes
90
pub points
75%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on toggle_bar_button