scroll_float 1.0.0
scroll_float: ^1.0.0 copied to clipboard
A Flutter widget that animates text with a “decryption-style” effect — scrambling letters until the final reveal.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:scroll_float/scroll_float.dart';
void main() {
runApp(const ScrollFloatExample());
}
class ScrollFloatExample extends StatelessWidget {
const ScrollFloatExample({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Scroll Float Example',
theme: ThemeData.dark(),
home: Scaffold(
body: SingleChildScrollView(
child: Column(
children: [
const SizedBox(height: 500),
const ScrollFloat(
text: "SCROLL FLOAT ANIMATION",
style: TextStyle(
fontSize: 48,
fontWeight: FontWeight.bold,
color: Colors.tealAccent,
),
),
const SizedBox(height: 800),
const ScrollFloat(
text: "SECOND TITLE ANIMATION",
style: TextStyle(
fontSize: 40,
color: Colors.orangeAccent,
),
),
const SizedBox(height: 600),
],
),
),
),
);
}
}