floating_text 0.1.0-nullsafety.1 copy "floating_text: ^0.1.0-nullsafety.1" to clipboard
floating_text: ^0.1.0-nullsafety.1 copied to clipboard

outdated

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

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:floating_text/floating_text.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'FloatingText Example',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: CustomCardsExample(),
    );
  }
}

class CustomCardsExample extends StatefulWidget {
  @override
  _CustomCardsExampleState createState() => _CustomCardsExampleState();
}

class _CustomCardsExampleState extends State<CustomCardsExample> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        centerTitle: true,
        title: Text(
          'FloatingText Example',
        ),
      ),
      body: Center(
        child: FloatingText(
          text: 'Congratulations',
          repeat: true,
          duration: Duration(milliseconds: 100),
          // isRTL: true,
          textStyle: TextStyle(
            fontSize: 40,
            color: Colors.black54,
          ),
          floatingTextStyle: TextStyle(
            color: Colors.red,
            fontSize: 40,
            shadows: [
              BoxShadow(
                color: Colors.yellow,
                blurRadius: 10,
              )
            ],
          ),
        ),
      ),
    );
  }
}
35
likes
0
pub points
70%
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