- Home
- Skills
- Mobile Development
- Flutter One-File Effects: shimmer, confetti, aurora
Works with the AI Agents you already use
Flutter One-File Effects: shimmer, confetti, aurora
20 Flutter animations you copy as one .dart file each, no packages, plus a skill that writes new effects in the same shape.
Free
Flutter One-File Effects: shimmer, confetti, aurora
Example session with this skill installed
Make a shimmer effect for my loading text, in the onefile-fx shape.
- Read your context and instructions
- Compiled the flutter one-file effects
Summary
Created lib/effects/shimmer.dart (68 lines, no packages), added it to the gallery and the README table, and ran the checker. This is the real file from the flutter-onefile-fx repo, written in this skill's shape and run in DartPad (Flutter 3.50.0).
lib/effects/shimmer.dart
import 'package:flutter/material.dart';
/// A light band that sweeps across [child]. Use it on loading text, logos
/// or "new" badges. Stops when the system asks to reduce motion.
class ShimmerFx extends StatefulWidget {
const ShimmerFx({
super.key,
required this.child,
this.duration = const Duration(milliseconds: 1600),
this.baseColor = const Color(0xFF9E9E9E),
this.highlightColor = const Color(0xFFFFFFFF),
});
final Widget child;
final Duration duration;
final Color baseColor;
final Color highlightColor;
@override
State<ShimmerFx> createState() => _ShimmerFxState();
}
class _ShimmerFxState extends State<ShimmerFx> with SingleTickerProviderStateMixin {
late final AnimationController _c = AnimationController(vsync: this, duration: widget.duration);
@override
void didChangeDependencies() {
super.didChangeDependencies();
if (MediaQuery.of(context).disableAnimations) {
_c.stop();
} else if (!_c.isAnimating) {
_c.repeat();
}
}
@override
void dispose() {
_c.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return RepaintBoundary(
child: AnimatedBuilder(
animation: _c,
child: widget.child,
builder: (context, child) => ShaderMask(
blendMode: BlendMode.srcIn,
shaderCallback: (rect) => LinearGradient(
colors: [widget.baseColor, widget.highlightColor, widget.baseColor],
stops: const [0.35, 0.5, 0.65],
transform: _SlideX((_c.value * 2 - 1) * rect.width),
).createShader(rect),
child: child,
),
),
);
}
}
class _SlideX extends GradientTransform {
const _SlideX(this.dx);
final double dx;
@override
Matrix4 transform(Rect bounds, {TextDirection? textDirection}) => Matrix4.translationValues(dx, 0, 0);
}
Checks
| Check | Result |
|---|---|
One public widget (ShimmerFx) | pass |
| Imports only flutter | pass |
| Under 120 lines | 68 |
| Doc comment | pass |
| Every controller disposed | pass |
| Respects reduce motion | stops in didChangeDependencies |
$ node scripts/check-effects.cjs
20 effects, 0 with problems
Use it
ShimmerFx(child: Text('Loading'))
Copy the file into your app; nothing to add to pubspec.yaml.
Connects securely to your tools. The creator never sees your data.
About this skill
Adding a shimmer or confetti to a Flutter app usually means another package in pubspec.yaml. This collection gives you effects you copy as one file instead, and a skill that makes your agent write new ones the same way.
The collection (on GitHub)
20 effects, each one .dart file, no packages, under 120 lines: shimmer, particles, confetti, glow pulse, wave, glitch, noise grain, aurora, typewriter, ripple, liquid progress, starfield, snow, spotlight, gradient border, flip counter, skeleton, morphing blob, scanline, parallax tilt.
All 20 ran in a gallery app in DartPad (Flutter 3.50.0), and CI runs flutter analyze on them: 0 errors, 0 warnings.
The skill
Ask your agent for a new effect ("a pulsing ring for the loading screen") and it writes it in the same shape:
- one public widget with sensible defaults, so const XFx() works
- only dart: and flutter imports, under 120 lines
- RepaintBoundary and CustomPainter driven by the animation, so the rest of the screen does not rebuild
- every AnimationController disposed, random data created once
- stops looping when the system asks to reduce motion; overlays ignore taps Then it adds the effect to the gallery and README and runs the bundled checker (one public widget, imports, line limit, doc comment, dispose).
Limits
The skill cannot run Flutter itself. Run the gallery or flutter analyze to see a new effect; the checker only checks the file's shape.
Free and MIT licensed: https://github.com/MBotirjonDev/flutter-onefile-fx
Each effect must fit one file under 120 lines with no packages, so very complex effects are split in two. The skill does not run Flutter: run the gallery or flutter analyze to see a new effect. The checker needs Node.js 18+.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed 3 days ago
- Free with an Agensi account
Requires