fps_counter 1.0.0+2 copy "fps_counter: ^1.0.0+2" to clipboard
fps_counter: ^1.0.0+2 copied to clipboard

A simple package to show the current FPS of your Flutter app.

Features #

  • Real-time FPS counter
  • Customizable display options
  • Lightweight and easy to integrate
  • Minimal performance overhead
  • Compatible with the latest Flutter versions

Usage #

FpsController only #

final _controller = FpsController();

and then

//Access the fps value through the stream
_controller.stream.listen((fps) {
    print('FPS: $fps');
});

FpsCounter Widget #

class HomePage extends StatefulWidget {
  const HomePage({super.key});

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  final _controller = FpsController();

  @override
  Widget build(BuildContext context) => Scaffold(
    body: FpsCounter(
      controller: _controller,
      child: ListView.builder(
        itemCount: 1000,
        itemBuilder: (context, index) => ListTile(title: Text('Item $index')),
      ),
    ),
  );
}

result image

2
likes
150
points
1
downloads

Publisher

verified publishersaltyspaghetti.dev

Weekly Downloads

A simple package to show the current FPS of your Flutter app.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_test

More

Packages that depend on fps_counter