use_scramble 0.0.9 copy "use_scramble: ^0.0.9" to clipboard
use_scramble: ^0.0.9 copied to clipboard

Lightweight package for random text animations inspired by useScramble

example/lib/main.dart

import 'package:flutter/material.dart';

import 'text_scamble.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        backgroundColor: Colors.black,
        body: Center(
          child: TextScramble(
            text: 'Hello World!',
            speed: Duration(milliseconds: 50),
            chars: '!<>-_\\/[]{}—=+*^?#________',
            correctCharProbability:
                0.1, // Correct character probability in [0, 1]
            scrambleCycles: 4, // Number of times to scramble the text
            textAlign: TextAlign.center, // Optional text alignment
            style: TextStyle(
              fontSize: 40,
              color: Colors.green,
              fontFamily: 'JetBrainsMono',
            ),
          ),
        ),
      ),
    );
  }
}
17
likes
0
points
9
downloads

Publisher

unverified uploader

Weekly Downloads

Lightweight package for random text animations inspired by useScramble

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on use_scramble