https://github.com/derdilla/inline_tab_view
A TabBarView that can be nested in scrollables
https://github.com/derdilla/inline_tab_view
flutter package renderobject tabbarview ui
Last synced: 5 months ago
JSON representation
A TabBarView that can be nested in scrollables
- Host: GitHub
- URL: https://github.com/derdilla/inline_tab_view
- Owner: derdilla
- License: mit
- Created: 2024-10-11T15:27:30.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-07-31T12:38:15.000Z (12 months ago)
- Last Synced: 2026-02-13T08:50:50.319Z (5 months ago)
- Topics: flutter, package, renderobject, tabbarview, ui
- Language: Dart
- Homepage: https://pub.dev/packages/inline_tab_view
- Size: 9.29 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
A inlineable TabBarView animating height taken by the widget without hacks. Creates a custom render object that mimics the default [TabBarView](https://api.flutter.dev/flutter/material/TabBarView-class.html) behavior that does not try to take up the entire available height.
[
](asset/showcase.webm)
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:
```dart
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.