Flutter plugin
Anpec
Know the device. Adapt the app.
ABOUT THE PROJECT
A little more about Anpec.
Android apps run on a wide range of hardware. Anpec is a small Flutter plugin that helps an app understand the device it is running on, so it can make more sensible choices about expensive features.
01 / Anpec
Ask about the device.
The plugin returns a performance class: unknown, low, average, or high. It uses Android media performance class when available, with hardware information as a fallback.
- Android device
- Classification
- App decision
final classifier = PerformanceClassifier.instance;
final performanceClass =
await classifier.getPerformanceClass();API example · Android only. Classification is a guide, not a benchmark.
02 / Anpec
Choose what your app should do.
Your app still decides how to use the result. You might reduce costly effects on a lower-end device or choose a lighter processing path. The plugin supplies the classification; it does not change the interface for you.
if (performanceClass == PerformanceClass.low) {
// Choose a lighter experience in your app.
}Integration example · Handle unknown results with a sensible default.
Where things stand.
Anpec is focused on Android. Treat its result as one input to your app’s behavior, and check the experience on real devices.
Explore Anpec ↗Read the source ↗