Search packages, repositories and app categories

GitHub repositoryadithyaxx/toggle_bar

toggle_bar

A horizontal bar of customisable toggle buttons.

toggle_bar project cover
Stars
9
Forks
10
Last push (UTC)
Sep 9, 2021
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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;
Adithya Suresh GitHub avatar
GitHub author

Adithya Suresh ↗

Generative AI Specialist @ AWS

@awsSydney
LanguagesDartSwiftKotlinObjective-C

Categories

Packages published by this repository

Dependencies used

Dependency list 3 items

  • flutter{"sdk":"flutter"}
  • testDevelopmentany
  • flutter_testDevelopment{"sdk":"flutter"}

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗