liquid_toggle_bar 1.2.0 copy "liquid_toggle_bar: ^1.2.0" to clipboard
liquid_toggle_bar: ^1.2.0 copied to clipboard

Horizontal tab interface capable of handing any number of inputs. Easily customize colors with an easy to use set of attributes.

Liquid Toggle Bar #

This is now included in a larger component library, liquidsoft_components

Screenshot_1615594687

Horizontal tab interface capable of handing any number of inputs. Easily customize colors with an easy to use set of attributes.

Getting Started #

Add

Prerequisites #

Works across Android, iOS, Web, Window, and Linux.

Attributes #

backgroundColor - The background color of the card holding tabs

selectedTabColor - The background color of the active tab

tabColor - The background color of any shown inactive tabs

selectedTextColor The text color of the active tab

textColor The text color of the inactive tabs

tabsNames - The list of tab names

borderRadius - The radius of the card holding the tabs

onSelectionUpdated - The callback function that gives the index

Basic Example #

int currentIndex = 0;

LiquidToggleBar(
  tabsNames: tabsNames,
  borderRadius: 0,
  backgroundColor: Colors.grey,
  selectedTabColor: Colors.orange,
  tabColor: Colors.purple,
  onSelectionUpdated: (index) => setState(() => currentIndex = index),
),

See example tab for more detail

Built With Flutter Love #

Change Log #

Check out the CHANGELOG.md file updates

Authors #

License #

This project is licensed under the MIT License - see the LICENSE.md file for details

1
likes
110
pub points
0%
popularity

Publisher

unverified uploader

Horizontal tab interface capable of handing any number of inputs. Easily customize colors with an easy to use set of attributes.

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on liquid_toggle_bar