Skip to main content

ghost_text 1.0.0 copy "ghost_text: ^1.0.0" to clipboard
ghost_text: ^1.0.0 copied to clipboard

A Flutter package that creates the viral Ghost Font effect. The text is rendered as moving noise, making it invisible in static screenshots.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Ghost Text Example',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const ExampleScreen(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: AppBar(
        title: const Text('Ghost Font Animation'),
      ),
      body: const Center(
        child: SizedBox(
          width: double.infinity,
          height: 300,
          child: GhostFont(
            text: 'GHOST',
            fontSize: 100,
            patternColor: Colors.black,
            backgroundColor: Colors.white,
            speed: 50.0,
            noiseScale: 2.0,
          ),
        ),
      ),
    );
  }
}
0
likes
150
points
16
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter package that creates the viral Ghost Font effect. The text is rendered as moving noise, making it invisible in static screenshots.

Homepage

License

MIT (license)

Dependencies

flutter

More

Packages that depend on ghost_text