scroll_sync_tabs 0.1.0
scroll_sync_tabs: ^0.1.0 copied to clipboard
Keep a TabBar and a scrollable list of sections in sync both ways - scrolling selects the tab, tapping a tab scrolls to the section.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add scroll_sync_tabsThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
scroll_sync_tabs: ^0.1.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:scroll_sync_tabs/scroll_sync_tabs.dart';