https://github.com/surfstudio/flutter-tabnavigator
https://github.com/surfstudio/flutter-tabnavigator
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/surfstudio/flutter-tabnavigator
- Owner: surfstudio
- License: apache-2.0
- Archived: true
- Created: 2021-07-09T05:44:23.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-20T10:07:38.000Z (over 2 years ago)
- Last Synced: 2025-03-29T19:22:18.744Z (6 months ago)
- Language: Dart
- Size: 427 KB
- Stars: 6
- Watchers: 8
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Tab Navigator
[](https://github.com/surfstudio/SurfGear/tree/main/packages/tabnavigator)
[](https://codecov.io/gh/surfstudio/SurfGear)
[](https://pub.dev/packages/tabnavigator)
[](https://pub.dev/packages/tabnavigator)
[](https://pub.dev/packages/tabnavigator/score)
This package made by [Surf](https://surf.ru).
## About
Possibly the most common style of navigation in mobile apps is tab-based navigation.
This module can manage the tabs on the screen.## Usage
* Add [TabNavigator](lib/src/tab_navigator.dart) to your widget.
* Add mapping of tabs to widgets inside the tab via [mappedTabs](lib/src/tab_navigator.dart#L22).
* Add a subscription to the stream of selected tabs through [selectedTabStream](lib/src/tab_navigator.dart#L23).
* Define a tab to be opened by default through [initialTab](lib/src/tab_navigator.dart#L24).
* Using [transitionsBuilder](lib/src/tab_navigator.dart#L27) and [transitionDuration](lib/src/tab_navigator.dart#L28), you can define a custom transformation to display the contents of the tab.## Installation
Add `tabnavigator` to your `pubspec.yaml` file:
```yaml
dependencies:
tabnavigator: ^1.0.0
```You can use both `stable` and `dev` versions of the package listed above in the badges bar.
## Changelog
All notable changes to this project will be documented in [this file](./CHANGELOG.md).
## Issues
For issues, file directly in the Issues section.
## Contribute
If you would like to contribute to the package (e.g. by improving the documentation, solving a bug or adding a cool new feature), please review our [contribution guide](../../CONTRIBUTING.md) first and send us your pull request.
Your PRs are always welcome.
## How to reach us
Please feel free to ask any questions about this package. Join our community chat on Telegram. We speak English and Russian.
[](https://t.me/SurfGear)
## License
[Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)