custom_underline_tab_indicator 0.0.1 copy "custom_underline_tab_indicator: ^0.0.1" to clipboard
custom_underline_tab_indicator: ^0.0.1 copied to clipboard

Add gradient colour to tab indicator

To use this package, just use CustomUnderlineTabIndicator like this:

                 TabBar(
                      isScrollable: true,
                      labelColor: AppColors.textWhite,
                      unselectedLabelColor:
                          AppColors.textWhite.withOpacity(0.4),
                      indicatorColor: AppColors.textWhite,
                      indicatorWeight: 2.0,
                      indicator: const CustomUnderlineTabIndicator(
                        gradient: LinearGradient(
                          colors: [
                            Color(0xff292828),
                            Color(0xff373737),
                            Color(0xff404040),
                            Color(0xffAAAAAA),
                            Color(0xff404040),
                            Color(0xff373737),
                            Color(0xff292828),
                          ],
                        ),
                      ),
                      tabs: const [
                        Tab(
                          text: "Rewards",
                        ),
                        Tab(
                          text: "Offers",
                        ),
                      ],
                    ),
1
likes
120
pub points
30%
popularity

Publisher

unverified uploader

Add gradient colour to tab indicator

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on custom_underline_tab_indicator