Agent skill · Data & Analytics

flutter-pre-caching

Use when preloading fonts, asset/network images, Lottie/Rive animations, local JSON/config, warming initial API data, or optimizing Flutter Web startup.

evancagithub.com/evancaGitHub ↗
claude-codecodexcursorwindsurfMIT
Install
npx skills add evanca/flutter-ai-rules --skill flutter-pre-caching --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 18 KB
Bundled scripts: none
Path: skills/flutter-pre-caching/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 604
Language: Shell

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Pre-caching in Flutter and Flutter Web Pre-caching helps avoid jank, loading flashes, font swaps, and delayed first renders. The key rule: > Pre-cache only what the user will likely see in the next 1 to 2 screens. Do not pre-cache the whole app. That can slow startup and waste memory. --- ## 1. Google Fonts ### Runtime Google Fonts preloading Use `GoogleFonts.pendingFonts()` to load the font variants before showing text. ```dart import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; class ExampleSimple extends StatefulWidget { const ExampleSimple({super.key}); @override State<ExampleSimple> createState() => _ExampleSimpleState(); } class _ExampleSimpleState extends State<ExampleSimple> { late final Future<List<void>> googleFontsPending; @override void initState() { super.initState(); googleFontsPending = GoogleFonts.pendingFonts([ GoogleFonts.poppins(), GoogleFonts.montserrat(fontStyle: FontStyle.italic), ]); } @override Widget build(BuildContext context) { final pushButtonTextStyle = GoogleFonts.poppins( textStyle: Theme.of(context).textTheme.headlineMedium, ); final counterTextStyle = GoogleFonts.montserrat( fontStyle: FontStyle.italic, textSty

What's inside
Steps it walks through
  1. 1. Google Fonts
  2. Runtime Google Fonts preloading
  3. Production recommendation
  4. 2. Asset images
  5. 3. Network images
  6. 4. Multiple image preloading
  7. 5. Waiting until images are ready
  8. 6. What should normally be pre-cached on app start?
  9. 7. Practical app-start preloader
  10. 8. Local JSON / config preloading
  11. 9. Initial API request warm-up
  12. 10. Lottie preloading
  13. 11. Rive preloading
  14. 12. Shader warm-up
More from flutter-ai-rules
All skills →
About this skill
What does the flutter-pre-caching skill do?

Use when preloading fonts, asset/network images, Lottie/Rive animations, local JSON/config, warming initial API data, or optimizing Flutter Web startup.

How do I install it?

Run `npx skills add evanca/flutter-ai-rules --skill flutter-pre-caching --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From evanca/flutter-ai-rules, a repository with 604 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going