floating_text 0.0.1 copy "floating_text: ^0.0.1" to clipboard
floating_text: ^0.0.1 copied to clipboard

outdated

A light weight flutter package which provides beautiful floating text animations.

floating_text #

A light weight flutter package which provides beautiful floating text animations.

Getting Started #

Add this package in your project's dependencies.

dependencies:
  floating_text: ^0.0.1

Import the package:

import 'package:floating_text/floating_text.dart'

Use Anywhere instead of Text Widget:

set repeat true for repeating the animation #

        FloatingText(
          text: "WELCOME",
          repeat: true,
          floatingSpeed: 5,
          floatingTextStyle: TextStyle(
            color: Colors.blue,
            fontSize: 50,
          ),
          textStyle: TextStyle(
            color: Colors.black38,
            fontSize: 60,
          ),
        ),

Use On Any Widget #

        RaisedButton(
          onPressed: () {},
          child: FloatingText(
            text: 'Button',
            repeat: true,
            floatingSpeed: 10,
          ),
        ),

RTL Support #

       FloatingText(
          text: 'WELCOME',
          repeat: true,
          textDirection: TextDirection.rtl,
          floatingSpeed: 12,
        ),

Use your custom text style #

     FloatingText(
          text: 'Congratulations',
          repeat: true,
          floatingSpeed: 6,
          textStyle: TextStyle(
            fontSize: 40,
            color: Colors.black54,
          ),
          floatingTextStyle: TextStyle(
            color: Colors.red,
            fontSize: 40,
            shadows: [
              BoxShadow(
                color: Colors.yellow,
                blurRadius: 10,
              )
            ],
          ),
        ),

Example

       FloatingText(
                 text: 'Congratulations',
                 repeat: true,
                 floatingSpeed: 6,
                 textStyle: TextStyle(
                   fontSize: 40,
                   color: Colors.black54,
                 ),
                 floatingTextStyle: TextStyle(
                   color: Colors.red,
                   fontSize: 40,
                   shadows: [
                     BoxShadow(
                       color: Colors.yellow,
                       blurRadius: 10,
                     )
                   ],
                 ),
               ),

Author #

Pradeep Tintali (4gpradeep@gmail.com)

36
likes
0
pub points
71%
popularity

Publisher

verified publisherstudentmitra.in

A light weight flutter package which provides beautiful floating text animations.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on floating_text