Skip to content

thanhdatvo/flutter_tab_bar_no_ripple

Repository files navigation

TabBarNoRipple

Build Status

Just tab bar of Flutter, without Ripple Effect

How to use

This widget has the same API as TabBar widget in Flutter TabBar API

import 'package:flutter_tab_bar_no_ripple/flutter_tab_bar_no_ripple.dart';
TabBarNoRipple(
  controller: _controller,
  isScrollable: true,
  indicator: getIndicator(),
  tabs: _allPages.map<Tab>((_Page page) {
    assert(_demoStyle != null);
    switch (_demoStyle) {
      case TabsDemoStyle.iconsAndText:
        return Tab(text: page.text, icon: Icon(page.icon));
      case TabsDemoStyle.iconsOnly:
        return Tab(icon: Icon(page.icon));
      case TabsDemoStyle.textOnly:
        return Tab(text: page.text);
    }
    return null;
  }).toList(),
);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published