shyamexe / scrollable_tab_view

This Flutter package provides a vertical scrollable tab bar widget that allows you to display resizable tabs
https://pub.dev/packages/scrollable_tab_view
MIT License
6 stars 1 forks source link

customize the background color of tabs. #8

Closed shyamexe closed 5 months ago

shyamexe commented 5 months ago

Great news! We've just rolled out an update to our Scrollable Tab View package, and now you can customize the background color of tabs. 🎨🚀

Thanks to your feedback, we're able to continuously improve our package and make it even more versatile for your needs.

To take advantage of this new feature, simply update to the latest version of the package, and you'll have full control over the appearance of your tabs.

 ScrollableTab(
                tabViewDecoration: const BoxDecoration(
                  color: Colors.amberAccent
                ),
                onTap: (value) {
                  if (kDebugMode) {
                    print('index $value');
                  }
                },
                tabs: List.generate(
                    5,
                    (index) => Tab(
                          text: 'index $index',
                        )),
                children: List.generate(
                    5,
                    (index) => ListTile(
                          title: Center(
                            child: Text(
                              'tab Number $index',
                              style: Theme.of(context)
                                  .textTheme
                                  .labelLarge!
                                  .copyWith(fontSize: 20.0 + (30 * index)),
                            ),
                          ),
                        )),
              ),

Screenshot 2024-04-07 at 12 42 43 PM

Keep the suggestions coming, and happy coding!

close #7