use_scramble 0.0.2
use_scramble: ^0.0.2 copied to clipboard
Lightweight package for random text animations inspired by useScramble
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:use_scramble/use_scramble.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: '!<>-_\\/[]{}—=+*^?#________',
style: TextStyle(
fontSize: 40,
color: Colors.green,
fontFamily: 'JetBrainsMono',
),
),
),
),
);
}
}