statsfl
2.3.0, released 5 years ago by gskinner.com
A lightweight widget that displays real‑time FPS and optional stats for Flutter apps
WASM-ready
What it does
StatsFl wraps a child widget and renders an overlay showing frames per second, with configurable size, alignment, and text visibility. It can be toggled on or off and supports custom FPS targets.
AI-written summary of version 2.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need quick visual feedback on rendering performance during development
- You want to monitor FPS in a production build for diagnostics
- You want a simple, dependency‑free overlay without external packages
Skip it when
- You require advanced profiling tools like timeline traces or GPU usage
- You need to integrate with a custom analytics or logging system
Strengths
- Zero external dependencies
- Easy to add via a single widget
- Configurable appearance and behavior
- Works on all Flutter platforms
Weaknesses
- Only provides FPS, no deeper profiling
- No built‑in persistence or export of data
- Limited customization beyond provided options
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Add dependency in pubspec, import package, wrap root widget with StatsFl
import 'package:statsfl/statsfl.dart';
void main() => runApp(StatsFl(child: MyApp()));