performance_fps 0.0.1
performance_fps: ^0.0.1 copied to clipboard
Flutter plugin for calculate fps online on Android and IOS, its result is the same as flutter performance
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add performance_fps
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
performance_fps: ^0.0.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:performance_fps/binding_fps.dart';
import 'package:performance_fps/fps_callback.dart';
import 'package:performance_fps/fps_computer.dart';
import 'package:performance_fps/plugin/fps_plugin.dart';
import 'package:performance_fps/util/debug_log.dart';