scrollable_tab_view 0.0.5 copy "scrollable_tab_view: ^0.0.5" to clipboard
scrollable_tab_view: ^0.0.5 copied to clipboard

This Flutter package provides a vertical scrollable tab bar widget that allows you to display tabs in a vertical layout.

scrollable_tab_view #

pub package License: MIT

This Flutter package provides a vertical scrollable tab bar widget that allows you to display resizable tabs

Demo #

gif

Installation #

Add this to your pubspec.yaml file:

dependencies:
  scrollable_tab_view: <latest-version>

Installation #

Import the package in your Dart file:

import 'package:scrollable_tab_view/scrollable_tab_view.dart';

Usage #

The ScrollableTab widget allows you to create a tab bar with scrollable tabs without using a controller.

ScrollableTab(
  labelColor: Colors.black,
  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)),
              ),
            ),
          )),
),

The ScrollableTabBar and ScrollableTabViewWithController widgets allow you to create a tab bar with scrollable tabs using a TabController.

Column(
  children: [

    ScrollableTabBar(
      labelColor: Colors.black,
      controller: controller,
      tabs: List.generate(
          5,
          (index) => Tab(
                text: 'index $index',
              )),
    ),
    ScrollableTabViewWithController(
      controller: controller,
      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)),
                  ),
                ),
              )),
    )
  ],
),
20
likes
0
pub points
84%
popularity

Publisher

verified publishershyamjith.in

This Flutter package provides a vertical scrollable tab bar widget that allows you to display tabs in a vertical layout.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on scrollable_tab_view