overflow_text_animated 0.0.2 copy "overflow_text_animated: ^0.0.2" to clipboard
overflow_text_animated: ^0.0.2 copied to clipboard

retracted

A Flutter package project that handles text overflow with animation.

Installing #

1. Depend on it #

Add this to your package's pubspec.yaml file:

dependencies:
  overflow_text_animated: ^0.0.1

2. Install it #

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

3. Import it #

Now in your Dart code, you can use:

import 'package:overflow_text_animated/overflow_text_animated.dart';

Usage #

OverflowTextAnimated is a Stateful Widget. Include it in your build method like:

OverflowTextAnimated(
  description,
  style: descriptionStyle,
  curve: Curves.fastEaseInToSlowEaseOut,
  animateDuration: Duration(milliseconds: 1500),
  delay: Duration(milliseconds: 500),
)

OverflowTextAnimated is used as default text widget. It has many configurable properties, including:

  • text - required properties
  • style – style of text
  • curve – motion curves of animation effects
  • animateDuration – is the duration of the animation
  • delay – is the break time between 2 animations

Note: Widget is only available when its parent has a specified width. So in the example, I've wrapped it with Extended Widget.

36
likes
0
pub points
85%
popularity

Publisher

unverified uploader

A Flutter package project that handles text overflow with animation.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on overflow_text_animated