v2.3.0statsfl
一個簡單的 Flutter FPS 監控器。有助於輕鬆診斷應用程式中的效能問題。
130喜歡 6800近 30 天下載145Pub 分數
AndroidiOSWebmacOSWindowsLinux
一個簡單的 Flutter FPS 監控器
{"sdk":"flutter"}以下為英文專案原文快照,最新內容請造訪 GitHub。
dependencies:
statsfl: ^2.2.0+1
import 'package:statsfl/statsfl.dart';
Just wrap your root view in the StatsFl widget:
StatsFl(child: MyApp());
There are a few additional options you can play with:
return StatsFl(
isEnabled: true, //Toggle on/off
width: 600, //Set size
height: 20, //
maxFps: 90, // Support custom FPS target (default is 60)
showText: true, // Hide text label
sampleTime: .5, //Interval between fps calculations, in seconds.
totalTime: 15, //Total length of timeline, in seconds.
align: Alignment.topLeft, //Alignment of statsbox
child: MyApp());
If you encounter any problems please open an issue. If you feel the library is missing a feature, please raise a ticket on Github and we'll look into it. Pull request are welcome.
MIT License