inline_tab_view 1.0.1 copy "inline_tab_view: ^1.0.1" to clipboard
inline_tab_view: ^1.0.1 copied to clipboard

A TabBarView that can be nested in scrollables while sticking to flutter best practices and avoiding hacks.

A inlineable TabBarView animating height taken by the widget without hacks. Creates a custom render object that mimics the default TabBarView behavior that does not try to take up the entire available height.

This avoids hacky tricks like detecting the child height during widget build and allows for smooth animation. With this focus on quality full test coverage and documentation is provided.

Usage #

You can use the widget similar to the original widget like this:

InlineTabView(
  controller: controller,
  children: [
    FirstChild(),
    SecondChild(),
    // Add other children to match [controller.length]
  ],
),

Check out the app in the /example folder for more complex use cases and an interactive demo.

3
likes
150
points
166
downloads

Publisher

verified publisherderdilla.com

Weekly Downloads

A TabBarView that can be nested in scrollables while sticking to flutter best practices and avoiding hacks.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on inline_tab_view