pretty_animated_text 3.0.1 copy "pretty_animated_text: ^3.0.1" to clipboard
pretty_animated_text: ^3.0.1 copied to clipboard

A Flutter plugin for creating customizable animated text widgets, enhancing app aesthetics with engaging text animations.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'core/constants.dart';
import 'home_page.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  // Preload demo fonts so the first frame of the Scale demo (and any other
  // effect using these styles) renders with the correct typeface instead of
  // the fallback while google_fonts fetches in the background.
  await GoogleFonts.pendingFonts([
    GoogleFonts.comicNeue(fontWeight: FontWeight.w900),
    GoogleFonts.plusJakartaSans(),
  ]);

  runApp(const PrettyAnimatedTextApp());
}

class PrettyAnimatedTextApp extends StatelessWidget {
  const PrettyAnimatedTextApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Pretty Animated Text',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(
          seedColor: kBrandIndigo,
          surface: const Color(0xFFF8FAFC),
        ),
        textTheme: GoogleFonts.plusJakartaSansTextTheme(),
        scaffoldBackgroundColor: Colors.transparent,
        useMaterial3: true,
      ),
      home: const _GradientScaffold(),
    );
  }
}

class _GradientScaffold extends StatelessWidget {
  const _GradientScaffold();

  @override
  Widget build(BuildContext context) {
    return Stack(
      children: [
        Positioned.fill(
          child: Container(
            decoration: const BoxDecoration(
              gradient: LinearGradient(
                begin: Alignment.topLeft,
                end: Alignment.bottomRight,
                colors: [
                  kBgGradientTop,
                  kBgGradientBottom,
                  kBgGradientTop,
                ],
                stops: [0.0, 0.5, 1.0],
              ),
            ),
          ),
        ),
        const HomeWidget(),
      ],
    );
  }
}
128
likes
150
points
1.57k
downloads

Documentation

API reference

Publisher

verified publisheryl0.me

Weekly Downloads

A Flutter plugin for creating customizable animated text widgets, enhancing app aesthetics with engaging text animations.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, forge2d, plugin_platform_interface, web

More

Packages that depend on pretty_animated_text

Packages that implement pretty_animated_text