pretty_animated_text 3.2.0 copy "pretty_animated_text: ^3.2.0" to clipboard
pretty_animated_text: ^3.2.0 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 UI fonts (Figtree, JetBrains Mono) and the animated showcase font
  // (Comic Neue) so the first frame renders with the correct typefaces.
  await GoogleFonts.pendingFonts([
    GoogleFonts.figtree(fontWeight: FontWeight.w400),
    GoogleFonts.figtree(fontWeight: FontWeight.w500),
    GoogleFonts.figtree(fontWeight: FontWeight.w600),
    GoogleFonts.figtree(fontWeight: FontWeight.w700),
    GoogleFonts.jetBrainsMono(fontWeight: FontWeight.w400),
    GoogleFonts.comicNeue(fontWeight: FontWeight.w900),
  ]);

  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(
        useMaterial3: true,
        colorScheme: ColorScheme.fromSeed(
          seedColor: dsAccent,
          brightness: Brightness.light,
          surface: dsSurface,
        ),
        scaffoldBackgroundColor: dsSurface,
        textTheme: GoogleFonts.figtreeTextTheme(ThemeData.light().textTheme),
      ),
      home: const HomeWidget(),
    );
  }
}
134
likes
160
points
809
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