Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gskinnerTeam/flutter-stats-fl
A simple FPS monitor for Flutter
https://github.com/gskinnerTeam/flutter-stats-fl
Last synced: about 2 months ago
JSON representation
A simple FPS monitor for Flutter
- Host: GitHub
- URL: https://github.com/gskinnerTeam/flutter-stats-fl
- Owner: gskinnerTeam
- License: mit
- Created: 2020-04-12T06:02:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-18T08:53:21.000Z (5 months ago)
- Last Synced: 2024-06-18T07:34:10.740Z (3 months ago)
- Language: C++
- Homepage:
- Size: 286 KB
- Stars: 72
- Watchers: 4
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# statsfl - A simple FPS monitor for Flutter
## đ¨ Installation
```yaml
dependencies:
statsfl: ^2.2.0+1
```### â Import
```dart
import 'package:statsfl/statsfl.dart';
```## đšī¸ Usage
Just wrap your root view in the StatsFl widget:
```dart
StatsFl(child: MyApp());
```There are a few additional options you can play with:
```dart
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());
```## đ Bugs/Requests
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.
## đ License
MIT License