shifting_tabbar 1.0.2 copy "shifting_tabbar: ^1.0.2" to clipboard
shifting_tabbar: ^1.0.2 copied to clipboard

A custom tab bar widget for Flutter framework with nice and clean shifting animation.

Shifting TabBar #

A custom tab bar widget for Flutter framework.

The design is inspired from Rally project (one of material design studies).

pub package

Getting Started #

Add the package to pubspec.yaml #

dependencies:
    ...
    shifting_tabbar: ^1.0.2
copied to clipboard

Import the package #

import 'package:shifting_tabbar/shifting_tabbar.dart';
copied to clipboard

Basic Usage #

This widget is programmed to work with TabController. You just need to install and import it to your code and use it just like TabBar.

Don't forget to use DefaultTabController as an ancestor widget if you don't specify controller manually!

new ShiftingTabBar(
    tabs: [
        ShiftingTab(
            icon: Icon(Icons.directions_bike),
            text: "Test 1",
        ),
        ShiftingTab(
            icon: Icon(Icons.directions_car),
            text: "Test 2"
        ),
        ShiftingTab(
            icon: Icon(Icons.directions_transit),
            text: "Test 3"
        ),
    ],
)
copied to clipboard

See example folder in git repository for more detailed example.

67
likes
90
points
59
downloads

Publisher

unverified uploader

Weekly Downloads

2024.08.20 - 2025.03.04

A custom tab bar widget for Flutter framework with nice and clean shifting animation.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on shifting_tabbar