animated_segment 0.0.2 animated_segment: ^0.0.2 copied to clipboard
Package provides you a modern animated fancy segment. Show selection of tab using elastic way animation.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add animated_segment
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
animated_segment: ^0.0.2
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:animated_segment/common/globals.dart';
import 'package:animated_segment/constants/colors.dart';
import 'package:animated_segment/constants/dimens.dart';
import 'package:animated_segment/constants/font_styles.dart';
import 'package:animated_segment/painter/ripple_effect_painter.dart';
import 'package:animated_segment/segment_animation.dart';
import 'package:animated_segment/util/event_bus.dart';
import 'package:animated_segment/widgets/animated_container.dart';
import 'package:animated_segment/widgets/background.dart';
import 'package:animated_segment/widgets/item_ripple.dart';
import 'package:animated_segment/widgets/segment_items.dart';