platform_tab_bar_control 0.0.1 platform_tab_bar_control: ^0.0.1 copied to clipboard
A simple Tab Bar Control that uses the platforms default widgets to control a `TabBarView`. Uses the regular `TabBar` on Android and a `CupertinoSegmentedControl` on iOS.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add platform_tab_bar_control
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
platform_tab_bar_control: ^0.0.1
Alternatively, 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:platform_tab_bar_control/platform_tab_bar_control.dart';