All Projects → afonsocraposo → buttons_tabbar

afonsocraposo / buttons_tabbar

Licence: MIT license
A Flutter package that implements a TabBar where each label is a toggle button.

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to buttons tabbar

flutter sliding tutorial
User onboarding library with smooth animation of objects and background colors
Stars: ✭ 127 (+159.18%)
Mutual labels:  tab, flutter-widget, flutter-ui, flutter-package
liquid button
Liquify your buttons, web demo at website
Stars: ✭ 18 (-63.27%)
Mutual labels:  button, flutter-widget, flutter-ui, flutter-package
flex color scheme
A Flutter package to make and use beautiful color scheme based themes.
Stars: ✭ 370 (+655.1%)
Mutual labels:  package, flutter-widget, flutter-ui, flutter-package
Motion-Tab-Bar
A beautiful animated flutter widget package library. The tab bar will attempt to use your current theme out of the box, however you may want to theme it.
Stars: ✭ 237 (+383.67%)
Mutual labels:  tabbar, flutter-widget, flutter-ui, flutter-package
shimmer animation
This shimmer animation widget can help you bring simple yet beautiful skeleton loaders to your flutter app with ease.
Stars: ✭ 29 (-40.82%)
Mutual labels:  flutter-widget, flutter-ui, flutter-package
survey kit
Flutter library to create beautiful surveys (aligned with ResearchKit on iOS)
Stars: ✭ 68 (+38.78%)
Mutual labels:  flutter-widget, flutter-ui, flutter-package
dough
This package provides some widgets you can use to create a smooshy UI.
Stars: ✭ 518 (+957.14%)
Mutual labels:  flutter-widget, flutter-ui, flutter-package
Interactive-Add-Button-Layout
Custom Layout with interactive add button to impove your UI and UX .
Stars: ✭ 20 (-59.18%)
Mutual labels:  flutter-widget, flutter-ui, flutter-package
sliding panel
A Flutter slidable widget that provides an easy to use configuration. Highly customisable. Just as you want it!
Stars: ✭ 88 (+79.59%)
Mutual labels:  flutter-widget, flutter-ui, flutter-package
overflow view
A widget displaying children in a line until there is not enough space and showing a the number of children not rendered.
Stars: ✭ 136 (+177.55%)
Mutual labels:  flutter-widget, flutter-ui, flutter-package
flip view
A Flutter app with flip animation to view profiles of friends. 🌟
Stars: ✭ 69 (+40.82%)
Mutual labels:  ui-design, flutter-widget, flutter-ui
flutter-app
Full Feature Todos Flutter Mobile app with fireStore integration.
Stars: ✭ 138 (+181.63%)
Mutual labels:  flutter-widget, flutter-ui, flutter-package
rainbow container
🌈 A magical container which changes colors whenever its build method is called.
Stars: ✭ 21 (-57.14%)
Mutual labels:  flutter-widget, flutter-ui, flutter-package
getwidget-docs
Get Widgets UI library docs.
Stars: ✭ 17 (-65.31%)
Mutual labels:  flutter-widget, flutter-ui, flutter-package
FlutterLoadingGIFs
Loading indicator GIFs. Material and Cupertino (Android and iOS) loading indicators in assorted sizes. Use as placeholders for loading remote image assets. Demo: https://gallery.codelessly.com/flutterwebsites/loadinggifs/
Stars: ✭ 28 (-42.86%)
Mutual labels:  flutter-widget, flutter-ui, flutter-package
TabBar
📱 TabBar – highly customizable tab bar for your SwiftUI application.
Stars: ✭ 105 (+114.29%)
Mutual labels:  tabbar, tab
seo renderer
A Flutter Web Plugin to display Text Widget as Html for SEO purpose
Stars: ✭ 103 (+110.2%)
Mutual labels:  flutter-widget, flutter-package
flutter link previewer
URL preview extracted from the provided text with basic customization and ability to render from cached data.
Stars: ✭ 35 (-28.57%)
Mutual labels:  flutter-widget, flutter-package
react-native-tabbar
A tabbar component for React Native
Stars: ✭ 59 (+20.41%)
Mutual labels:  tabbar, tab
flutter-ui-toucanpay-app
A sample ui for ToucanPay in flutter
Stars: ✭ 51 (+4.08%)
Mutual labels:  ui-design, flutter-ui

Buttons TabBar

Pub

Open source Flutter package, tabbar where each tab indicator is a toggle button.

Made by Afonso Raposo.

See the full example here

Install and import the package. Then just customize its parameters.

Installation

dependencies:
  flutter:
    sdk: flutter
  buttons_tabbar: ^1.3.6

Screenshots

Default

ButtonsTabBar screen


ButtonsTabBar screen animation


ButtonsTabBar - Examples

Example #1

ButtonsTabBar - Example #1


DefaultTabController(
          length: ...,
          child: Column(
            children: <Widget>[
              ButtonsTabBar(
                backgroundColor: Colors.red,
                tabs: ...,
              ),
              Expanded(
                child: TabBarView(
                  children: ...,
                ),
              ),
            ],
          ),
        )

Example #2

ButtonsTabBar - Example #2


DefaultTabController(
          length: ...,
          child: Column(
            children: <Widget>[
              ButtonsTabBar(
                backgroundColor: Colors.blue[600],
                unselectedBackgroundColor: Colors.white,
                labelStyle:
                    TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
		unselectedLabelStyle: TextStyle(
                    color: Colors.blue[600], fontWeight: FontWeight.bold),
                borderWidth: 1,
                unselectedBorderColor: Colors.blue[600],
                radius: 100,
                tabs: ...,
              ),
              Expanded(
                child: TabBarView(
                  children: ...,
                ),
              ),
            ],
          ),
        )

Example #3

ButtonsTabBar - Example #3


DefaultTabController(
  length: 6,
  child: Column(
    children: <Widget>[
      ButtonsTabBar(
        radius: 12,
        contentPadding: EdgeInsets.symmetric(horizontal: 12),
        borderWidth: 2,
        borderColor: Colors.transparent,
        center: true,
        decoration: BoxDecoration(
          gradient: LinearGradient(
            colors: <Color>[
              Color(0xFF0D47A1),
              Color(0xFF1976D2),
              Color(0xFF42A5F5),
            ],
          ),
        ),
        unselectedLabelStyle: TextStyle(color: Colors.black),
        labelStyle: TextStyle(color: Colors.white),
        height: 56,
        tabs: ...,
      ),
      Expanded(
        child: TabBarView(
          children: ...,
        ),
      ),
    ],
  ),
)

ButtonsTabBar Parameters

Parameter Type Description Default
tabs List<Widget> The tabs to display. Typically a list of two or more Tab widgets. @required
controller TabController This widget's selection and animation state. DefaultTabController.of
duration int The duration in milliseconds of the transition animation. 250
backgroundColor Color The background color of the button on its selected state. Theme.of(context).accentColor
unselectedBackgroundColor Color The background color of the button on its unselected state. Colors.grey[300]
decoration BoxDecoration The BoxDecoration of the button on its selected state. null
unselectedDecoration BoxDecoration The BoxDecoration of the button on its unselected state. null
splashColor Color The splash color of the button null
borderWidth double The with of solid Border for each button. 0
borderColor Color The border color of the button on its selected state. Colors.black
unselectedBorderColor Color The border color of the button on its unselected state. If it's value is null, the Color of borderColor is used. null
labelStyle TextStyle The TextStyle of the button's Text on its selected state. The color provided on the TextStyle will be used for the Icon's color. TextStyle(color: Colors.white)
unselectedLabelStyle TextStyle The TextStyle of the button's Text on its unselected state. The color provided on the TextStyle will be used for the Icon's color. TextStyle(color: Colors.black)
physics ScrollPhysics The physics used for the ScrollControllerof the tabs list. BouncingScrollPhysics
contentPadding EdgeInsets The EdgeInsets used for the Padding of the buttons' content. EdgeInsets.symmetric(horizontal: 4.0)
buttonMargin EdgeInsets The EdgeInsets used for the Margin of the buttons. EdgeInsets.all(4.0)
labelSpacing double The spacing between the Icon and the Text. If only one of those is provided, no spacing is applied. 4.0
radius double The value of the BorderRadius.circular applied to each button. 7.0
height double Override the material TabBar height value. 46.0
center bool Center the tab buttons. false
elevation double The value of elevation applied to each button. 0

Future

If you have any suggestion or problem, let me know and I'll try to improve or fix it.

License

GNU General Public License v3.0, see the LICENSE.md file for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].