contained_tab_bar_view 0.3.1+1 copy "contained_tab_bar_view: ^0.3.1+1" to clipboard
contained_tab_bar_view: ^0.3.1+1 copied to clipboard

outdated

ContainedTabBarView encapsulates TabController, TabBar and TabBarView into a single, easy to use Widget.

ContainedTabBarView #

ContainedTabBarView encapsulates TabController, TabBar and TabBarView into a single, easy to use, constrainable Widget.

Usage #

To use this package, add contained_tab_bar_view as a dependency in your pubspec.yaml file.

Examples #

import 'package:contained_tab_bar_view/contained_tab_bar_view.dart';

...

Container(
    padding: const EdgeInsets.all(8.0),
    color: Colors.blue,
    width: 200,
    height: 300,
    child: ContainedTabBarView(
        tabs: [
            Text('First'),
            Text('Second')
        ],
        views: [
            Container(color: Colors.red),
            Container(color: Colors.green)
        ],
        onChange: (index) => print(index),
    ),
)
example 1 example 2 example 3 example 4 example 5 example 6
168
likes
0
pub points
97%
popularity

Publisher

verified publisherscipack.dev

ContainedTabBarView encapsulates TabController, TabBar and TabBarView into a single, easy to use Widget.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on contained_tab_bar_view